Skip to content

Commit 25755e8

Browse files
pccgitster
authored andcommitted
Remove a redundant errno test in a usage of remove_path
The errno test is redundant because the same test is carried out in remove_path itself. Signed-off-by: Peter Collingbourne <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 80d706a commit 25755e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge-recursive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static int remove_file(struct merge_options *o, int clean,
409409
return -1;
410410
}
411411
if (update_working_directory) {
412-
if (remove_path(path) && errno != ENOENT)
412+
if (remove_path(path))
413413
return -1;
414414
}
415415
return 0;

0 commit comments

Comments
 (0)