Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Remove a redundant errno test in a usage of remove_path
author
Peter Collingbourne
<peter@pcc.me.uk>
Fri, 26 Mar 2010 15:25:35 +0000
(15:25 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 28 Mar 2010 16:53:05 +0000
(09:53 -0700)
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>
merge-recursive.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
80d706a
)
diff --git
a/merge-recursive.c
b/merge-recursive.c
index 195ebf974435b0b08cd2be0f54c137218034008b..87232b899d8ab12c2f3c6704a9a1ca12d4a9f286 100644
(file)
--- a/
merge-recursive.c
+++ b/
merge-recursive.c
@@
-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;