Browse Source

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 <peter@pcc.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Peter Collingbourne 15 years ago committed by Junio C Hamano
parent
commit
25755e842f
  1. 2
      merge-recursive.c

2
merge-recursive.c

@ -409,7 +409,7 @@ static int remove_file(struct merge_options *o, int clean, @@ -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;

Loading…
Cancel
Save