From ae6e608ade98faec4dd2236d6f873544e4bb60e0 Mon Sep 17 00:00:00 2001 From: Sanduh32 Date: Thu, 11 Jan 2018 19:27:20 +0100 Subject: [PATCH] Renamed redundant object name --- .../duncte123/skybot/commands/guild/mod/BanCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ml/duncte123/skybot/commands/guild/mod/BanCommand.java b/src/main/java/ml/duncte123/skybot/commands/guild/mod/BanCommand.java index b7b80d982..33477d45b 100644 --- a/src/main/java/ml/duncte123/skybot/commands/guild/mod/BanCommand.java +++ b/src/main/java/ml/duncte123/skybot/commands/guild/mod/BanCommand.java @@ -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 */) { sendMsg(event, "Incorrect time format, use `" + PREFIX+"help " + getName()+ "` for more info."); return; }