зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
80d706afed
Коммит
25755e842f
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче