1
0
Fork 0
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:
lukinovec 2026-08-05 13:48:12 +02:00
parent c0ac3382e0
commit 7b12d51efe

View file

@ -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