summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2019-11-17 10:27:05 -0800
committerDavid Pursehouse <david.pursehouse@gmail.com>2019-11-17 10:27:11 -0800
commite9c21fca58286b87a1c16f7aab824b48d5f848e0 (patch)
tree764693dbe313ca72278ea1bb78e481aa78d01b22
parentf8e60ce1cf1b1241c6d44f5dd84c204784157642 (diff)
downloadjgit-e9c21fca58286b87a1c16f7aab824b48d5f848e0.tar.gz
jgit-e9c21fca58286b87a1c16f7aab824b48d5f848e0.zip
ReceivePack: Remove unnecessarily nested else-clause
Change-Id: I604ea76e03503300a381eca9c213f73677b5e21f Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java6
1 files 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 820cdb6bad..ef8cccf383 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))