Skip to content

Commit fdf02a4

Browse files
committed
path-util: use STR_IN_SET() where appropriate
1 parent 6cdd6d1 commit fdf02a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/basic/path-util.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,9 +1235,10 @@ bool hidden_or_backup_file(const char *filename) {
12351235
assert(filename);
12361236

12371237
if (filename[0] == '.' ||
1238-
streq(filename, "lost+found") ||
1239-
streq(filename, "aquota.user") ||
1240-
streq(filename, "aquota.group") ||
1238+
STR_IN_SET(filename,
1239+
"lost+found",
1240+
"aquota.user",
1241+
"aquota.group") ||
12411242
endswith(filename, "~"))
12421243
return true;
12431244

0 commit comments

Comments
 (0)