Remove unnecessary check ?? '' from non-null

This commit is contained in:
Mike Colagrosso 2025-01-25 23:21:40 -07:00 committed by Alex Cabal
parent fce4fbc601
commit 0c87f1f262

View file

@ -1582,7 +1582,7 @@ final class Ebook{
}
if(isset($this->IndexableText)){
$this->IndexableText = trim($this->IndexableText ?? '');
$this->IndexableText = trim($this->IndexableText);
if($this->IndexableText == ''){
$error->Add(new Exceptions\EbookIndexableTextRequiredException());
@ -1593,7 +1593,7 @@ final class Ebook{
}
if(isset($this->IndexableAuthors)){
$this->IndexableAuthors = trim($this->IndexableAuthors ?? '');
$this->IndexableAuthors = trim($this->IndexableAuthors);
if($this->IndexableAuthors == ''){
$error->Add(new Exceptions\EbookIndexableAuthorsRequiredException());