Inline redundant if statements

See gh-39259
This commit is contained in:
Tobias Lippert
2024-01-21 18:42:27 +01:00
committed by Phillip Webb
parent 9cdd0c3776
commit def7523398
18 changed files with 24 additions and 76 deletions

View File

@@ -81,10 +81,7 @@ public class HelpCommand extends AbstractCommand {
}
private boolean isHelpShown(Command command) {
if (command instanceof HelpCommand || command instanceof HintCommand) {
return false;
}
return true;
return !(command instanceof HelpCommand) && !(command instanceof HintCommand);
}
@Override