Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed Aug 13, 2024
1 parent 228b4b1 commit cc88121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ public void onProxyShutdown(ProxyShutdownEvent event) {

@Override
public List<ProtoServer> getServers() {
return proxy.getAllServers().stream()
.map(server -> new ProtoServer(server.getServerInfo().getName(), server.getServerInfo().getAddress()))
.toList();
return proxy.getAllServers().stream().map(server -> new ProtoServer(server.getServerInfo().getName(), server.getServerInfo().getAddress())).toList();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ public void onDisable() {

@Override
public List<ProtoServer> getServers() {
return getProxy().getServersCopy().values().stream()
.map(server -> new ProtoServer(server.getName(), server.getSocketAddress()))
.toList();
return getProxy().getServersCopy().values().stream().map(server -> new ProtoServer(server.getName(), server.getSocketAddress())).toList();
}

@Override
Expand Down

0 comments on commit cc88121

Please sign in to comment.