mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 07:12:33 +00:00
chore: Refactor instanceSettings() function to improve code readability
This commit is contained in:
1 parent
817bd9c35d
commit
4db50bd025
3 files changed
+7
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user