refactor: replace size() == 0 with isEmpty()

This commit is contained in:
Breno A.
2024-06-09 08:54:37 -03:00
Unverified
parent da61d30f44
commit ef58ab3e5a
54 changed files with 89 additions and 91 deletions
@@ -69,7 +69,7 @@ public final class SendMailCommand implements CommandHandler {
} else {
MailBuilder mailBuilder = mailBeingConstructed.get(senderId);
if (args.size() >= 1) {
if (!args.isEmpty()) {
switch (args.get(0).toLowerCase()) {
case "stop" -> {
mailBeingConstructed.remove(senderId);