Browse Source

IndexDiffFilter: Simplify a boolean expression

Change-Id: Ibdd0338b638b864d6572045b084b08a04471ecf7
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
tags/v4.0.0.201505191015-rc1
Sebastian Schuberth 9 years ago
parent
commit
926ad4296e

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/filter/IndexDiffFilter.java View File

@@ -199,7 +199,7 @@ public class IndexDiffFilter extends TreeFilter {

// If i is cnt then the path does not appear in any other tree,
// and this working tree entry can be safely ignored.
return i == cnt ? false : true;
return i != cnt;
} else {
// In working tree and not ignored, and not in DirCache.
return true;

Loading…
Cancel
Save