Remove unneeded coments

This commit is contained in:
Fabien Potencier
2021-12-17 08:44:00 -08:00
parent 4d46ed3ac3
commit 3284859a1b
-2
View File
@@ -510,12 +510,10 @@ class Environment
return $name;
}
// Optimization: Avoid throwing an exception when it would be ignored anyway.
if (1 !== $count && !$this->getLoader()->exists($name)) {
continue;
}
// Throws LoaderError: Unable to find template "%s".
return $this->loadTemplate($name);
}