Skip to content

Commit 52371bf

Browse files
committed
Merge branch 'mt/clean-clean'
Code clean-up. * mt/clean-clean: clean: remove unnecessary variable
2 parents 47fa106 + 3a7f090 commit 52371bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

builtin/clean.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,6 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
10031003

10041004
for (i = 0; i < dir.nr; i++) {
10051005
struct dir_entry *ent = dir.entries[i];
1006-
int matches = 0;
10071006
struct stat st;
10081007
const char *rel;
10091008

@@ -1013,8 +1012,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
10131012
if (lstat(ent->name, &st))
10141013
die_errno("Cannot lstat '%s'", ent->name);
10151014

1016-
if (S_ISDIR(st.st_mode) && !remove_directories &&
1017-
matches != MATCHED_EXACTLY)
1015+
if (S_ISDIR(st.st_mode) && !remove_directories)
10181016
continue;
10191017

10201018
rel = relative_path(ent->name, prefix, &buf);

0 commit comments

Comments
 (0)