Skip to content

Commit

Permalink
Merge pull request #7280 from alvasw/Socks5MultiDiscovery_Dont_create…
Browse files Browse the repository at this point in the history
…_useless_array

Socks5MultiDiscovery: Don't create useless array
  • Loading branch information
alejandrogarcia83 authored Nov 5, 2024
2 parents 1baf67e + bb3acb3 commit 2500907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/src/main/java/bisq/network/Socks5MultiDiscovery.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public InetSocketAddress[] getPeers(long services, long timeoutValue, TimeUnit t
list.addAll(Arrays.asList(discovery.getPeers(services, timeoutValue, timeoutUnit)));
}

return list.toArray(new InetSocketAddress[list.size()]);
return list.toArray(new InetSocketAddress[0]);
}

@Override
Expand Down

0 comments on commit 2500907

Please sign in to comment.