mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 10:08:31 -05:00
refactor: use null comparison instead of empty
This commit is contained in:
@@ -476,7 +476,7 @@ class TorrentController extends BaseController
|
||||
$torrent->where('torrents.seeders', '=', 0)->where('torrents.leechers', '>=', 1);
|
||||
}
|
||||
|
||||
if (! empty($torrent)) {
|
||||
if ($torrent !== null) {
|
||||
return new TorrentsResource($torrent->paginate(25));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user