1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-14 04:34:02 +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,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