From 916b163ea8295a2c9e8f7e64adb8e07c635367bb Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Fri, 9 Oct 2020 00:52:39 +0200 Subject: [PATCH] Tiny refactoring --- .../java/ch/fritteli/labyrinth/server/LabyrinthServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/ch/fritteli/labyrinth/server/LabyrinthServer.java b/src/main/java/ch/fritteli/labyrinth/server/LabyrinthServer.java index 94c7892..0eb2530 100644 --- a/src/main/java/ch/fritteli/labyrinth/server/LabyrinthServer.java +++ b/src/main/java/ch/fritteli/labyrinth/server/LabyrinthServer.java @@ -140,9 +140,8 @@ public class LabyrinthServer { if (name == null) { return Option.none(); } - final String nameLC = name.toLowerCase(); return Stream.of(values()) - .find(param -> param.names.contains(nameLC)); + .find(param -> param.names.exists(name::equalsIgnoreCase)); } }