Browse Source

GC: Simplify boolean expression

Signed-off-by: Hector Oswaldo Caballero <hector.caballero@ericsson.com>
Change-Id: I0e7a365c26b2333627fcc26b9ea9f4fcd65e8746
tags/v4.11.0.201803080745-r
Hector Caballero 6 years ago
parent
commit
f58c3fce90

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java View File

@@ -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