Browse Source

GC: Simplify boolean expression

Signed-off-by: Hector Oswaldo Caballero <hector.caballero@ericsson.com>
Change-Id: I0e7a365c26b2333627fcc26b9ea9f4fcd65e8746
stable-4.11
Hector Caballero 7 years ago
parent
commit
f58c3fce90
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java

4
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java

@ -1490,8 +1490,8 @@ public class GC {
private boolean needGc() {
if (tooManyPacks()) {
addRepackAllOption();
} else if (!tooManyLooseObjects()) {
return false;
} else {
return tooManyLooseObjects();
}
// TODO run pre-auto-gc hook, if it fails return false
return true;

Loading…
Cancel
Save