diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/util/PersistentDataUtilities.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/util/PersistentDataUtilities.java index 871567e..2d606bb 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/util/PersistentDataUtilities.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/util/PersistentDataUtilities.java @@ -34,7 +34,7 @@ public class PersistentDataUtilities { future = Main.executor.scheduleAtFixedRate(() -> { // TODO: thread-safe try { - if (queue.size() == 0) return; + if (queue.isEmpty()) return; final Map.Entry entry = queue.entrySet().iterator().next(); // is this the best way to get the first item of the map?