1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 09:04:03 +00:00

Remove redundant condition check

This commit is contained in:
Victor R 2025-10-01 14:00:51 -04:00 committed by GitHub
parent 6c0e58ad10
commit 2208363ec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,8 +119,7 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
foreach ($this->app['config']['filesystems.disks'] as $name => $disk) {
if (isset($disk['driver'], $disk['disk'])
&& $disk['driver'] === 'scoped'
&& in_array($disk['disk'], $tenantDisks, true)
&& ! in_array($name, $scopedDisks, true)) {
&& in_array($disk['disk'], $tenantDisks, true)) {
$scopedDisks[] = $name;
}
}