From e9c21fca58286b87a1c16f7aab824b48d5f848e0 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Sun, 17 Nov 2019 10:27:05 -0800 Subject: [PATCH] ReceivePack: Remove unnecessarily nested else-clause Change-Id: I604ea76e03503300a381eca9c213f73677b5e21f Signed-off-by: David Pursehouse --- .../src/org/eclipse/jgit/transport/ReceivePack.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java index 820cdb6ba..ef8cccf38 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java @@ -1606,10 +1606,10 @@ public class ReceivePack { continue; if (providedObjects != null) { - if (providedObjects.contains(o)) + if (providedObjects.contains(o)) { continue; - else - throw new MissingObjectException(o, o.getType()); + } + throw new MissingObjectException(o, o.getType()); } if (o instanceof RevBlob && !db.getObjectDatabase().has(o))