Chain append calls

This commit is contained in:
Ossian Winter 2021-01-27 15:22:21 +01:00
parent 59114e509e
commit 792342610f
No known key found for this signature in database
GPG Key ID: 1017BE95C68A39F9
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public final class FakeChatCommand extends Command {
for (int i = 1; i < split.length; i++) {
final String s = split[i];
sb.append(s + (i == split.length - 1 ? "" : " "));
sb.append(s).append(i == split.length - 1 ? "" : " ");
}
final String message = sb.toString();