refactor: identical false to boolean not

This commit is contained in:
HDVinnie
2020-04-24 11:07:48 -04:00
parent 8c8e2865b2
commit 0ceae8c701
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class AlbumController extends Controller
$imdb = Str::startsWith($request->input('imdb'), 'tt') ? $request->input('imdb') : 'tt'.$request->input('imdb');
$omdb = $this->client->find(['imdb' => $imdb]);
if ($omdb === null || $omdb === false) {
if ($omdb === null || !$omdb) {
return redirect()->route('albums.create')
->withErrors('Bad IMDB Request!');
}