Fix iconStoreService get() not returning null on missing file

This commit is contained in:
Bubka 2024-11-09 14:13:04 +01:00
parent 9c199dc7d5
commit 2b35a9543a

View File

@ -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;
}
}
/**