diff --git a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php index de4bf1af..b1d35a00 100644 --- a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php +++ b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php @@ -30,10 +30,8 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper public function revert(): void { - if ($this->originalPrefix) { - $this->setCachePrefix($this->originalPrefix); - $this->originalPrefix = null; - } + $this->setCachePrefix($this->originalPrefix); + $this->originalPrefix = null; } protected function setCachePrefix(string $prefix): void