Commit 969ea98d51b11de10a979c1e8a73fbdd0c23e3b2

Stefan Sperling 2022-01-24T08:04:11

remove non-reachable 'return NULL' statement from report_single_file_status()

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/worktree.c b/lib/worktree.c
index 0f78ee7..03ed920 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -3573,7 +3573,6 @@ report_single_file_status(const char *path, const char *ondisk_path,
 			return got_error_from_errno2("lstat", ondisk_path);
 		return (*status_cb)(status_arg, GOT_STATUS_NONEXISTENT,
 		    GOT_STATUS_NO_CHANGE, path, NULL, NULL, NULL, -1, NULL);
-		return NULL;
 	}
 
 	if (S_ISREG(sb.st_mode) || S_ISLNK(sb.st_mode))