mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-05 21:56:42 +00:00
Fixes for Codacy;
These fixes are designed to satisfy codacy. However, codacy reports a NPath Complexity of 649, whereas the current, recommended, and standardized threshold is 200. This is caused by FreedomCommand#execute(CommandSender, String, String[]);
This commit is contained in:
@ -187,7 +187,7 @@ public class Discord extends FreedomService
|
||||
@Override
|
||||
public void onReady(@NotNull ReadyEvent event)
|
||||
{
|
||||
new StartEvent(event.getJDA()).start();
|
||||
new StartEvent().start();
|
||||
}
|
||||
})
|
||||
.setAutoReconnect(true)
|
||||
@ -503,7 +503,7 @@ public class Discord extends FreedomService
|
||||
// Do no ask why this is here. I spent two hours trying to make a simple thing work
|
||||
public class StartEvent
|
||||
{
|
||||
public StartEvent(JDA api)
|
||||
public StartEvent()
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user