From 5fa5e474ffdbcc1cd12e7b00c102c235027ef75d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 12 Jul 2015 12:53:09 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20initialize=20peer=20with=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/fcp/quelaton/AddPeerCommandImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.7.4