From 65c58007f77122c5c0d8b858cad0d9d44bc525c1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 1 Oct 2024 12:10:10 -0700 Subject: [PATCH] ls: omit unnecessary test * src/ls.c (gobble_file): Omit redundant test of variable that must be false here. --- src/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ls.c b/src/ls.c index 9f3f214002..8599368eff 100644 --- a/src/ls.c +++ b/src/ls.c @@ -3384,7 +3384,7 @@ gobble_file (char const *name, enum filetype type, ino_t inode, assertion that the inode number is not yet known. */ || (print_inode && inode == NOT_AN_INODE_NUMBER) || (format_needs_type - && (type == unknown || command_line_arg + && (type == unknown /* --indicator-style=classify (aka -F) requires that we stat each regular file to see if it's executable. */ -- 2.47.2