Skip to content

Commit

Permalink
Remove useless if check
Browse files Browse the repository at this point in the history
  • Loading branch information
KaspianDev authored Mar 28, 2023
1 parent 9ba3a2e commit 764c2ad
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ public void onEnable() {
Objects.requireNonNull(this.getCommand("antipopup")).setExecutor(new CommandRegister());
getLogger().info("Commands registered.");

if (yamlDoc.getBoolean("filter-not-secure")
|| yamlDoc.getBoolean("sync-time-suppress")) {
if (yamlDoc.getBoolean("filter-not-secure")) {
((org.apache.logging.log4j.core.Logger) LogManager.getRootLogger()).addFilter(new LogFilter());
getLogger().info("Logger filter enabled.");
} else {
Expand Down Expand Up @@ -175,4 +174,4 @@ public static Plugin getInstance() {
public static YamlDocument getYamlDoc() {
return yamlDoc;
}
}
}

0 comments on commit 764c2ad

Please sign in to comment.