mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 10:24:03 +00:00
Remove redundant condition check
This commit is contained in:
parent
6c0e58ad10
commit
2208363ec7
1 changed files with 1 additions and 2 deletions
|
|
@ -119,8 +119,7 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
||||||
foreach ($this->app['config']['filesystems.disks'] as $name => $disk) {
|
foreach ($this->app['config']['filesystems.disks'] as $name => $disk) {
|
||||||
if (isset($disk['driver'], $disk['disk'])
|
if (isset($disk['driver'], $disk['disk'])
|
||||||
&& $disk['driver'] === 'scoped'
|
&& $disk['driver'] === 'scoped'
|
||||||
&& in_array($disk['disk'], $tenantDisks, true)
|
&& in_array($disk['disk'], $tenantDisks, true)) {
|
||||||
&& ! in_array($name, $scopedDisks, true)) {
|
|
||||||
$scopedDisks[] = $name;
|
$scopedDisks[] = $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue