refactor: Merge if statements both returning in Notifications module

This commit is contained in:
xgraza
2026-01-25 23:01:12 -06:00
parent 18f5c0f63b
commit 82ceca7bf3
@@ -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;
}