Skip to content

Commit b233e11

Browse files
committed
refactor: remove intermediate variable
1 parent 2c929ab commit b233e11

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Config/Services.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public static function settings(?SettingsConfig $config = null, bool $getShared
3030
return static::getSharedInstance('settings', $config);
3131
}
3232

33-
$config ??= config('Settings');
34-
35-
return new Settings($config);
33+
return new Settings($config ?? config('Settings'));
3634
}
3735
}

0 commit comments

Comments
 (0)