chat command manager: remove unnecessary null tests

This commit is contained in:
Adam
2021-02-04 17:55:44 -05:00
parent 29747b1ea7
commit 236c23b25e

View File

@@ -106,11 +106,6 @@ public class ChatCommandManager implements ChatboxInputListener
String message = chatMessage.getMessage();
String command = extractCommand(message);
if (command == null)
{
return;
}
ChatCommand chatCommand = commands.get(command.toLowerCase());
if (chatCommand == null)
{
@@ -137,11 +132,6 @@ public class ChatCommandManager implements ChatboxInputListener
}
String command = extractCommand(message);
if (command == null)
{
return false;
}
ChatCommand chatCommand = commands.get(command.toLowerCase());
if (chatCommand == null)
{
@@ -163,11 +153,6 @@ public class ChatCommandManager implements ChatboxInputListener
final String message = privateMessageInput.getMessage();
String command = extractCommand(message);
if (command == null)
{
return false;
}
ChatCommand chatCommand = commands.get(command.toLowerCase());
if (chatCommand == null)
{