1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-14 16:44:03 +00:00

remove null check

This commit is contained in:
Abrar Ahmad 2022-11-22 14:00:35 +05:00
parent c4f9324aa8
commit e970c160d0

View file

@ -30,11 +30,9 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper
public function revert(): void public function revert(): void
{ {
if ($this->originalPrefix) {
$this->setCachePrefix($this->originalPrefix); $this->setCachePrefix($this->originalPrefix);
$this->originalPrefix = null; $this->originalPrefix = null;
} }
}
protected function setCachePrefix(string $prefix): void protected function setCachePrefix(string $prefix): void
{ {