Skip to content

Commit

Permalink
Fix iconStoreService get() not returning null on missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubka committed Nov 9, 2024
1 parent 9c199dc commit 2b35a95
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Services/IconStoreService.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ protected function registeredIcons()
*/
public function get(string $name) : ?string
{
return $this->usesDatabase
? Icon::find($name)?->content
: $this->disk()->get($name);
if ($this->usesDatabase) {
return Icon::find($name)?->content;
} else {
return $this->disk()->get($name) ?: null;
}
}

/**
Expand Down

0 comments on commit 2b35a95

Please sign in to comment.