Chain append calls

This commit is contained in:
Ossian Winter 2021-01-27 15:25:34 +01:00
parent e3ce518f45
commit 9ba151e157
No known key found for this signature in database
GPG Key ID: 1017BE95C68A39F9
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public final class RenameCommand extends Command {
for (int i = 1; i < size; i++) {
final String arg = split[i];
sb.append(arg + ((i == size - 1) ? "" : " "));
sb.append(arg).append((i == size - 1) ? "" : " ");
}
final String name = sb.toString().replace("&", "\247");