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:
parent
8953429a82
commit
222802e833
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue