Skip to content

Commit

Permalink
Remove Java 16 Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlmao committed Jan 10, 2022
1 parent d010a47 commit 78acd66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void registerServerCommand(@NotNull String serverID, @NotNull String name
Optional<Map.Entry<String, HashMap<String, Command>>> first = serverCommands.entrySet().stream()
.filter(commandEntry -> commandEntry.getKey().equalsIgnoreCase(serverID)).findFirst();

if (first.isEmpty())
if (!first.isPresent())
return Collections.emptyList();

Map.Entry<String, HashMap<String, Command>> commandEntries = first.get();
Expand Down

0 comments on commit 78acd66

Please sign in to comment.