mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Ternary operator could be simplified.
(cherry picked from commit 57f0cd7
)
This commit is contained in:
parent
fc8d71de5c
commit
02a06e68c9
3 changed files with 3 additions and 3 deletions
|
@ -253,7 +253,7 @@ function physical_filename_already_stored($filename)
|
|||
$num_rows = DB()->num_rows($result);
|
||||
DB()->sql_freeresult($result);
|
||||
|
||||
return ($num_rows == 0) ? false : true;
|
||||
return $num_rows != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue