Commit ba79aa40 authored by JohnAlbin's avatar JohnAlbin

Code style fix: simplify nested ifs.

parent 778ab667
......@@ -96,10 +96,8 @@ class ComponentLibraryLoader extends \Twig_Loader_Filesystem {
}
else {
foreach ($library['paths'] as $path) {
if (!$library['error']) {
if (!is_dir($path)) {
$library['error'] = 'path does not exist: "' . $path . '"';
}
if (!$library['error'] && !is_dir($path)) {
$library['error'] = 'path does not exist: "' . $path . '"';
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment