Commit fd7a136d02efc789a2092aa294d1d5d7c30538e8

Stefan Sperling 2019-07-13T10:31:11

remove duplicate check in if-statement

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/worktree.c b/lib/worktree.c
index 00d0c3d..73f02ad 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -1074,7 +1074,6 @@ get_file_status(unsigned char *status, struct stat *sb,
 	if (ie->ctime_sec == sb->st_ctime &&
 	    ie->ctime_nsec == sb->st_ctimensec &&
 	    ie->mtime_sec == sb->st_mtime &&
-	    ie->mtime_sec == sb->st_mtime &&
 	    ie->mtime_nsec == sb->st_mtimensec &&
 	    ie->size == (sb->st_size & 0xffffffff))
 		return NULL;