forked from ChomeNS/chomens-bot-java
isEmpty
This commit is contained in:
parent
fc7139f548
commit
8756b86524
1 changed files with 1 additions and 1 deletions
|
@ -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<String, JsonElement> entry = queue.entrySet().iterator().next(); // is this the best way to get the first item of the map?
|
||||
|
||||
|
|
Loading…
Reference in a new issue