Browse Source

ReceivePack: Remove unnecessarily nested else-clause

Change-Id: I604ea76e03503300a381eca9c213f73677b5e21f
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.6
David Pursehouse 5 years ago
parent
commit
e9c21fca58
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

6
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))

Loading…
Cancel
Save