mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50: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
|
@ -65,7 +65,7 @@ public class DbusCommandHandler {
|
|||
SignalControl.class);
|
||||
try {
|
||||
final var accounts = control.listAccounts();
|
||||
if (accounts.size() == 0) {
|
||||
if (accounts.isEmpty()) {
|
||||
throw new UserErrorException("No local users found, you first need to register or link an account");
|
||||
} else if (accounts.size() > 1) {
|
||||
throw new UserErrorException(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue