From: David ‘Bombe’ Roden Date: Sun, 12 Jul 2015 10:53:09 +0000 (+0200) Subject: Don’t initialize peer with null X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5fa5e474ffdbcc1cd12e7b00c102c235027ef75d;p=jFCPlib.git Don’t initialize peer with null --- diff --git a/src/main/java/net/pterodactylus/fcp/quelaton/AddPeerCommandImpl.java b/src/main/java/net/pterodactylus/fcp/quelaton/AddPeerCommandImpl.java index e1f0d5b..a54f166 100644 --- a/src/main/java/net/pterodactylus/fcp/quelaton/AddPeerCommandImpl.java +++ b/src/main/java/net/pterodactylus/fcp/quelaton/AddPeerCommandImpl.java @@ -59,7 +59,7 @@ public class AddPeerCommandImpl implements AddPeerCommand { } private Optional executeSequence() throws IOException, ExecutionException, InterruptedException { - AddPeer addPeer = null; + AddPeer addPeer; if (file.get() != null) { addPeer = new AddPeer(new RandomIdentifierGenerator().generate(), file.get().getPath()); } else if (url.get() != null) {