chore: Refactor instanceSettings() function to improve code readability

This commit is contained in:
Andras Bacsai
2024-10-01 10:33:56 +02:00
parent 817bd9c35d
commit 4db50bd025
3 changed files with 7 additions and 3 deletions

View File

@@ -89,12 +89,12 @@ class InstanceSettings extends Model implements SendsEmail
public function helperVersion(): Attribute
{
return Attribute::make(
get: function () {
get: function ($value) {
if (isDev()) {
return 'latest';
}
return $this->helper_version;
return $value;
}
);
}