Skip to content

Commit

Permalink
Simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zrdzn committed Sep 15, 2024
1 parent 1d1774f commit 2eee8ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void sendMessageAsync(CommandSender receiver, ColoredText message, String

private String formatPlaceholders(String message, String... placeholders) {
int length = placeholders.length;
if (length <= 0 || length % 2 != 0) {
if (length == 0 || length % 2 != 0) {
return message;
}

Expand Down

0 comments on commit 2eee8ef

Please sign in to comment.