Skip to content

Commit

Permalink
changed early return
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Panzeri <[email protected]>
  • Loading branch information
connorhu and thePanz authored Mar 21, 2024
1 parent 4cbbab2 commit 455e001
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/view/sfViewCacheManager.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,11 @@ public function remove($internalUri, $hostName = '', $vary = '', $contextualPref
if (strpos($cacheKey, '*')) {
return $this->cache->removePattern($cacheKey);
}
if ($this->cache->has($cacheKey)) {
return $this->cache->remove($cacheKey);
if (!$this->cache->has($cacheKey)) {
return true;
}

return true;
return $this->cache->remove($cacheKey);
}

/**
Expand Down

0 comments on commit 455e001

Please sign in to comment.