mirror of
https://github.com/archtechx/tenancy.git
synced 2026-08-06 08:54:03 +00:00
Delete unreachable code
The check could only pass with a `null` path, which is just bad configuration. So no reason to keep this.
This commit is contained in:
parent
c0ac3382e0
commit
7b12d51efe
1 changed files with 0 additions and 6 deletions
|
|
@ -213,12 +213,6 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
||||||
$this->originalCacheLockPaths[$name] = $store['lock_path'] ?? null;
|
$this->originalCacheLockPaths[$name] = $store['lock_path'] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only scope stores captured during bootstrap. If one was added to tenancy.cache.stores
|
|
||||||
// mid-request, it has no original path here -- reading it would throw when tenancy ends.
|
|
||||||
if (! isset($this->originalCachePaths[$name])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$path = $suffix ? $this->tenantCachePath($this->originalCachePaths[$name], $suffix) : $this->originalCachePaths[$name];
|
$path = $suffix ? $this->tenantCachePath($this->originalCachePaths[$name], $suffix) : $this->originalCachePaths[$name];
|
||||||
|
|
||||||
// Unlike path, lock_path is optional -- if it's not set, FileStore::lock() falls back to path
|
// Unlike path, lock_path is optional -- if it's not set, FileStore::lock() falls back to path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue