Skip to content

Commit c8f4e1a

Browse files
spotless
1 parent a6fa9a9 commit c8f4e1a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

teku/src/main/java/tech/pegasys/teku/cli/options/P2POptions.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -606,22 +606,22 @@ private OptionalInt getP2pUpperBound() {
606606
return p2pUpperBound;
607607
}
608608

609-
private List<String> getStaticPeersList() {
610-
final List<String> staticPeers = new ArrayList<>(p2pStaticPeers);
611-
612-
if (p2pStaticPeersUrl != null) {
613-
try {
614-
final List<String> peersFromUrl = MultilineEntriesReader.readEntries(p2pStaticPeersUrl);
615-
staticPeers.addAll(peersFromUrl);
616-
} catch (final Exception e) {
617-
throw new InvalidConfigurationException(
618-
"Error reading static peers from " + p2pStaticPeersUrl, e);
619-
}
620-
}
609+
private List<String> getStaticPeersList() {
610+
final List<String> staticPeers = new ArrayList<>(p2pStaticPeers);
621611

622-
return staticPeers;
612+
if (p2pStaticPeersUrl != null) {
613+
try {
614+
final List<String> peersFromUrl = MultilineEntriesReader.readEntries(p2pStaticPeersUrl);
615+
staticPeers.addAll(peersFromUrl);
616+
} catch (final Exception e) {
617+
throw new InvalidConfigurationException(
618+
"Error reading static peers from " + p2pStaticPeersUrl, e);
619+
}
623620
}
624621

622+
return staticPeers;
623+
}
624+
625625
private List<String> getBootnodes() {
626626
final List<String> bootnodes = new ArrayList<>();
627627

0 commit comments

Comments
 (0)