Micro performance improvements

This commit is contained in:
lieght
2025-09-21 18:03:43 +02:00
parent a4464cf890
commit e3606835ce
2 changed files with 0 additions and 2 deletions

View File

@@ -64,7 +64,6 @@ public enum TicTacToeServerCommand {
*/ */
public static TicTacToeServerCommand getCommand(String command) { public static TicTacToeServerCommand getCommand(String command) {
if (isValid(command)) { if (isValid(command)) {
TicTacToeServerCommand.valueOf(command.toUpperCase());
return TicTacToeServerCommand.valueOf(command.toUpperCase()); return TicTacToeServerCommand.valueOf(command.toUpperCase());
} }
return null; return null;

View File

@@ -38,7 +38,6 @@ public enum TicTacToeServerMessage {
*/ */
public static TicTacToeServerMessage getCommand(String command) { public static TicTacToeServerMessage getCommand(String command) {
if (isValid(command)) { if (isValid(command)) {
TicTacToeServerMessage.valueOf(command.toUpperCase());
return TicTacToeServerMessage.valueOf(command.toUpperCase()); return TicTacToeServerMessage.valueOf(command.toUpperCase());
} }
return null; return null;