Skip to content

Commit 80a2d74

Browse files
967: Code refactoring
1 parent 134472d commit 80a2d74

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/com/magento/idea/magento2plugin/actions/generation/generator/util/FindOrCreateLayoutXml.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import java.util.Properties;
1818

1919
public final class FindOrCreateLayoutXml {
20+
2021
private final Project project;
2122

2223
public FindOrCreateLayoutXml(final Project project) {
@@ -62,8 +63,9 @@ public PsiFile execute(
6263
}
6364

6465
LayoutXml layoutXml = new LayoutXml(routeId, controllerName, controllerActionName);
65-
if ("".equals(controllerName)) {
66-
layoutXml = new LayoutXml(routeId);
66+
67+
if (controllerName.isEmpty()) {
68+
layoutXml = new LayoutXml(routeId);
6769
}
6870
PsiFile layoutXmlFile = FileBasedIndexUtil.findModuleViewFile(
6971
layoutXml.getFileName(),

0 commit comments

Comments
 (0)