mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +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
|
@ -45,7 +45,7 @@ record JsonSyncMessage(
|
|||
blockedGroupIds = null;
|
||||
}
|
||||
|
||||
final var readMessages = syncMessage.read().size() > 0 ? syncMessage.read()
|
||||
final var readMessages = !syncMessage.read().isEmpty() ? syncMessage.read()
|
||||
.stream()
|
||||
.map(JsonSyncReadMessage::from)
|
||||
.toList() : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue