X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/9ba70c18088ebb9b44c91fd18de5b6ff1adbe9f4..d51dd7ae575222b0baea7265c18ebc79f4a7b001:/src/main/java/org/asamk/signal/http/ServerSentEventSender.java diff --git a/src/main/java/org/asamk/signal/http/ServerSentEventSender.java b/src/main/java/org/asamk/signal/http/ServerSentEventSender.java index b33d3310..a1452a63 100644 --- a/src/main/java/org/asamk/signal/http/ServerSentEventSender.java +++ b/src/main/java/org/asamk/signal/http/ServerSentEventSender.java @@ -35,7 +35,7 @@ public class ServerSentEventSender { writer.write(event); writer.write("\n"); } - if (data.size() == 0) { + if (data.isEmpty()) { writer.write("data\n"); } else { for (final var d : data) {