mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-03 04:50:37 +00:00
Use .isEmpty() for checking lists and strings
This commit is contained in:
parent
9ba70c1808
commit
d51dd7ae57
17 changed files with 70 additions and 70 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue