cleanup: use bulk operation instead of iteration

This commit is contained in:
P0nk
2021-04-08 17:44:35 +02:00
parent 3434c7334b
commit 202f2d8bc5
16 changed files with 42 additions and 101 deletions

View File

@@ -259,9 +259,7 @@ public class Server {
try {
List<Channel> channelz = new ArrayList<>();
for (World world : this.getWorlds()) {
for (Channel ch : world.getChannels()) {
channelz.add(ch);
}
channelz.addAll(world.getChannels());
}
return channelz;
} catch (NullPointerException npe) {