test: code shrink

function                                             old     new   delta
nexpr                                                813     800     -13

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2024-10-06 19:08:10 +02:00
parent 8953429a82
commit 222802e833

View file

@ -760,7 +760,7 @@ static int filstat(char *nm, enum token mode)
return ((s.st_mode & i) != 0);
}
if (mode == FILGZ)
return s.st_size > 0L;
return s.st_size != 0L; /* shorter than "> 0" test */
if (mode == FILUID)
return s.st_uid == geteuid();
if (mode == FILGID)