Inline redundant if statements
See gh-39259
This commit is contained in:
committed by
Phillip Webb
parent
9cdd0c3776
commit
def7523398
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user