simplified some code

This commit is contained in:
Fabien Potencier
2019-03-11 16:43:04 +01:00
parent 2861b40965
commit d46e6d4a39
2 changed files with 3 additions and 18 deletions
+1 -3
View File
@@ -454,12 +454,10 @@ class Environment
$this->setLoader($loader);
try {
$template = $this->loadTemplate($name);
return $this->loadTemplate($name);
} finally {
$this->setLoader($current);
}
return $template;
}
/**