Tiny refactoring
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Manuel Friedli 2020-10-09 00:52:39 +02:00
parent 5ba689841f
commit 916b163ea8

View file

@ -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));
}
}