Skip to content

Commit 455e001

Browse files
connorhuthePanz
andauthored
changed early return
Co-authored-by: Emanuele Panzeri <[email protected]>
1 parent 4cbbab2 commit 455e001

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/view/sfViewCacheManager.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,11 @@ public function remove($internalUri, $hostName = '', $vary = '', $contextualPref
439439
if (strpos($cacheKey, '*')) {
440440
return $this->cache->removePattern($cacheKey);
441441
}
442-
if ($this->cache->has($cacheKey)) {
443-
return $this->cache->remove($cacheKey);
442+
if (!$this->cache->has($cacheKey)) {
443+
return true;
444444
}
445445

446-
return true;
446+
return $this->cache->remove($cacheKey);
447447
}
448448

449449
/**

0 commit comments

Comments
 (0)