refactor: use null comparison instead of empty

This commit is contained in:
HDVinnie
2020-12-02 21:19:45 -05:00
parent 817ce03fd0
commit 78b5958686
@@ -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));
}