diff --git a/src/main/java/com/cominatyou/db/RedisUserEntry.java b/src/main/java/com/cominatyou/db/RedisUserEntry.java index 09d8944..3fbd47d 100644 --- a/src/main/java/com/cominatyou/db/RedisUserEntry.java +++ b/src/main/java/com/cominatyou/db/RedisUserEntry.java @@ -15,7 +15,7 @@ public class RedisUserEntry { final String redisKey; private void checkForEmptyKey(String key) throws IllegalArgumentException { - if (key == null || key.equals("")) { + if (key == null || key.isBlank()) { throw new IllegalArgumentException("Key cannot be empty"); } }