Skip to content

Commit

Permalink
Renamed redundant object name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanduhr32 committed Jan 11, 2018
1 parent 485033a commit ae6e608
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ public void executeCommand( String invoke, String[] args, GuildMessageReceivedEv
}

String unbanDate = "";
int banTime = 0;
int banTime; // initial value is always 0
try {
banTime = Integer.parseInt(timeParts[0]);
}
catch (NumberFormatException ignored) {
sendMsg(event, ignored.getMessage()+" is not a valid number");
catch (NumberFormatException e) {
sendMsg(event, e.getMessage()+" is not a valid number");
return;
}
catch (ArrayIndexOutOfBoundsException /* https://youtube.com/DSHelmondGames */ pls_subscribe) {
catch (ArrayIndexOutOfBoundsException ignored /* https://youtube.com/DSHelmondGames */) {

This comment has been minimized.

Copy link
@duncte123

duncte123 Jan 11, 2018

Member

REEEEEEE

This comment has been minimized.

Copy link
@Sanduhr32

Sanduhr32 Jan 11, 2018

Author Contributor

Denied. I don't allow ads like you.

sendMsg(event, "Incorrect time format, use `" + PREFIX+"help " + getName()+ "` for more info.");
return;
}
Expand Down

0 comments on commit ae6e608

Please sign in to comment.