mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Merge pull request #7280 from alvasw/Socks5MultiDiscovery_Dont_create_useless_array
Socks5MultiDiscovery: Don't create useless array
This commit is contained in:
commit
25009074ef
@ -75,7 +75,7 @@ public class Socks5MultiDiscovery implements PeerDiscovery {
|
||||
list.addAll(Arrays.asList(discovery.getPeers(services, timeoutValue, timeoutUnit)));
|
||||
}
|
||||
|
||||
return list.toArray(new InetSocketAddress[list.size()]);
|
||||
return list.toArray(new InetSocketAddress[0]);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user