From: Paul Eggert Date: Tue, 1 Oct 2024 19:10:10 +0000 (-0700) Subject: ls: omit unnecessary test X-Git-Tag: v9.6~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65c58007f77122c5c0d8b858cad0d9d44bc525c1;p=thirdparty%2Fcoreutils.git ls: omit unnecessary test * src/ls.c (gobble_file): Omit redundant test of variable that must be false here. --- 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. */