refactor: Merge if statements both returning in Notifications module
This commit is contained in:
@@ -18,11 +18,9 @@ public class Notifications extends Module {
|
||||
|
||||
@Subscribe
|
||||
public void onClient(ClientEvent event) {
|
||||
if (!moduleToggle.getValue() || event.getType() != ClientEvent.Type.TOGGLE_MODULE) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getFeature() instanceof ClickGui) {
|
||||
if (!moduleToggle.getValue()
|
||||
|| event.getType() != ClientEvent.Type.TOGGLE_MODULE
|
||||
|| event.getFeature() instanceof ClickGui) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user