From e970c160d06ddf8d68df3bc2a11442710a2df035 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Tue, 22 Nov 2022 14:00:35 +0500 Subject: [PATCH] remove `null` check --- src/Bootstrappers/PrefixCacheTenancyBootstrapper.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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