Skip to content

Commit ed4babf

Browse files
Remove unnecessary null check
1 parent 950a674 commit ed4babf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/HasBookAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function book(): Attribute
2626
{
2727
return Attribute::make(
2828
get: fn () => $this->attributes['book'] ?? null
29-
? new Book($this->fromJson($this->attributes['book'] ?? '{}'))
29+
? new Book($this->fromJson($this->attributes['book']))
3030
: null
3131
);
3232
}

0 commit comments

Comments
 (0)