mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Simplify CoreSeedNodesRepository#isSeedNode stream pipeline
This commit is contained in:
parent
b5af59dee0
commit
9c77f4ce57
1 changed files with 1 additions and 1 deletions
|
@ -57,6 +57,6 @@ public class CoreSeedNodesRepository implements SeedNodesRepository {
|
|||
|
||||
public boolean isSeedNode(NodeAddress nodeAddress) {
|
||||
return Stream.concat(localhostSeedNodeAddresses.stream(), torSeedNodeAddresses.stream())
|
||||
.filter(e -> e.equals(nodeAddress)).findAny().isPresent();
|
||||
.anyMatch(e -> e.equals(nodeAddress));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue