Skip to content

Commit

Permalink
[nodeploy] Use isBlank() in checkForEmptyKey
Browse files Browse the repository at this point in the history
  • Loading branch information
CominAtYou committed Jun 30, 2023
1 parent 555a435 commit b277438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cominatyou/db/RedisUserEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit b277438

Please sign in to comment.