Removed redundant code.

This commit is contained in:
Michaili K 2019-06-30 19:09:43 +02:00
parent 13d9fa87d8
commit 75abab2832

View file

@ -43,10 +43,7 @@ public class ForceRemoveCmd extends MusicCommand {
} else {
try {
target = Long.parseLong(args);
} catch (NumberFormatException ignored) {
event.replyError("You need to mention a user!");
return;
}
} catch (NumberFormatException ignored) {}
}
if (target <= 0) {
event.replyError("You need to mention a user!");