Fixed code smell in AdminResetsResetCommand

This commit is contained in:
Florian CUNY 2019-07-02 09:13:13 +02:00
parent bd69179354
commit 1fd880a529

View File

@ -24,7 +24,7 @@ public class AdminResetsResetCommand extends ConfirmableCommand {
@Override
public boolean execute(User user, String label, List<String> args) {
if (args.isEmpty() || args.size() != 1) {
if (args.size() != 1) {
showHelp(this, user);
return false;
}