]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
ls: omit unnecessary test
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Oct 2024 19:10:10 +0000 (12:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2024 06:03:04 +0000 (23:03 -0700)
* src/ls.c (gobble_file): Omit redundant test of variable that
must be false here.

src/ls.c

index 9f3f2140021353953fc75fc10a132464000eaf88..8599368eff67732b94385648367142ff520e4fc5 100644 (file)
--- 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.  */