From b5e927433d16cf89d7956c2db698bcd2ea5e633f Mon Sep 17 00:00:00 2001 From: Arne Babenhauserheide Date: Sun, 1 Dec 2024 09:31:58 +0100 Subject: [PATCH] Add braces for if/else --- src/freenet/node/PeerManager.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/freenet/node/PeerManager.java b/src/freenet/node/PeerManager.java index 14969d78d6..8c9bf68e1b 100644 --- a/src/freenet/node/PeerManager.java +++ b/src/freenet/node/PeerManager.java @@ -285,12 +285,14 @@ private boolean readPeers(File peersFile, NodeCrypto crypto, OpennetManager open for (PeerNode pn : createdNodes) { if(oldOpennetPeers) { - if(!(pn instanceof OpennetPeerNode)) + if(!(pn instanceof OpennetPeerNode)) { Logger.error(this, "Darknet node in old opennet peers?!: "+pn); - else + } else { opennet.addOldOpennetNode((OpennetPeerNode)pn); - } else + } + } else { addPeer(pn, true, false); + } } try { br.close();