Skip to content
Snippets Groups Projects

Remove meaningless code

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -319,7 +319,7 @@ public function orIf(AccessResultInterface $other) {
}
else {
$result = static::neutral();
if (!$this->isNeutral() || ($this->getCacheMaxAge() === 0 && $other->isNeutral()) || ($this->getCacheMaxAge() !== 0 && $other instanceof CacheableDependencyInterface && $other->getCacheMaxAge() !== 0)) {
if ($this->getCacheMaxAge() === 0 || ($other instanceof CacheableDependencyInterface && $other->getCacheMaxAge() !== 0)) {
$merge_other = TRUE;
}
Loading