IndexDiffFilter: Simplify a boolean expression
Change-Id: Ibdd0338b638b864d6572045b084b08a04471ecf7 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
This commit is contained in:
parent
3d231bd95e
commit
926ad4296e
|
@ -199,7 +199,7 @@ public boolean include(TreeWalk tw) throws MissingObjectException,
|
|||
|
||||
// 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…
Reference in New Issue