Don’t initialize peer with null
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / AddPeerCommandImpl.java
index e1f0d5b..a54f166 100644 (file)
@@ -59,7 +59,7 @@ public class AddPeerCommandImpl implements AddPeerCommand {
        }
 
        private Optional<Peer> 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) {