Code clean-up.

* mt/clean-clean:
  clean: remove unnecessary variable
This commit is contained in:
Junio C Hamano 2021-05-14 08:26:10 +09:00
Родитель 47fa106617 3a7f0908b6
Коммит 52371bf449
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -1003,7 +1003,6 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
for (i = 0; i < dir.nr; i++) { for (i = 0; i < dir.nr; i++) {
struct dir_entry *ent = dir.entries[i]; struct dir_entry *ent = dir.entries[i];
int matches = 0;
struct stat st; struct stat st;
const char *rel; const char *rel;
@ -1013,8 +1012,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
if (lstat(ent->name, &st)) if (lstat(ent->name, &st))
die_errno("Cannot lstat '%s'", ent->name); die_errno("Cannot lstat '%s'", ent->name);
if (S_ISDIR(st.st_mode) && !remove_directories && if (S_ISDIR(st.st_mode) && !remove_directories)
matches != MATCHED_EXACTLY)
continue; continue;
rel = relative_path(ent->name, prefix, &buf); rel = relative_path(ent->name, prefix, &buf);