Skip to content

Commit

Permalink
Cache crash fix (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukinovec committed Jan 27, 2023
1 parent 84a3287 commit 26b8569
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Resolvers/Contracts/CachedTenantResolver.php
Expand Up @@ -36,9 +36,7 @@ public function resolve(...$args): Tenant

$key = $this->getCacheKey(...$args);

if ($this->cache->has($key)) {
$tenant = $this->cache->get($key);

if ($tenant = $this->cache->get($key)) {
$this->resolved($tenant, ...$args);

return $tenant;
Expand Down

0 comments on commit 26b8569

Please sign in to comment.