Remove else.

By returning early we can avoid the else statement entirely.
This commit is contained in:
mark_story 2014-06-20 16:07:47 -04:00
parent e683616329
commit ffe811935c

View file

@ -132,12 +132,12 @@ class ApcEngine extends CacheEngine {
APC_ITER_NONE APC_ITER_NONE
); );
apc_delete($iterator); apc_delete($iterator);
} else { return true;
$cache = apc_cache_info('user'); }
foreach ($cache['cache_list'] as $key) { $cache = apc_cache_info('user');
if (strpos($key['info'], $this->settings['prefix']) === 0) { foreach ($cache['cache_list'] as $key) {
apc_delete($key['info']); if (strpos($key['info'], $this->settings['prefix']) === 0) {
} apc_delete($key['info']);
} }
} }
return true; return true;