Skip to content

Commit

Permalink
Add braces for if/else
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBab committed Dec 1, 2024
1 parent 3aad7ea commit b5e9274
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/freenet/node/PeerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b5e9274

Please sign in to comment.