Skip to content

Commit

Permalink
Remove a redundant errno test in a usage of remove_path
Browse files Browse the repository at this point in the history
The errno test is redundant because the same test is carried
out in remove_path itself.

Signed-off-by: Peter Collingbourne <peter@pcc.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Peter Collingbourne authored and Junio C Hamano committed Mar 28, 2010
1 parent 80d706a commit 25755e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merge-recursive.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ static int remove_file(struct merge_options *o, int clean,
return -1;
}
if (update_working_directory) {
if (remove_path(path) && errno != ENOENT)
if (remove_path(path))
return -1;
}
return 0;
Expand Down

0 comments on commit 25755e8

Please sign in to comment.