File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
src/com/magento/idea/magento2plugin/actions/generation/dialog Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -141,21 +141,16 @@ protected void onOK() {
141
141
exit ();
142
142
return ;
143
143
}
144
+
144
145
if (targetBlockTag .getContainingFile () == null || targetBlockTag .getContainingFile ().getParent () == null ) {
145
146
return ;
146
- }
147
+ } else {
147
148
final String moduleName = GetModuleNameByDirectoryUtil .execute (
148
149
targetBlockTag .getContainingFile ().getParent (),
149
150
project
150
151
);
151
- targetBlockTag .getContainingFile ().getParent () != null ) {
152
- final String moduleName = GetModuleNameByDirectoryUtil .execute (
153
- targetBlockTag .getContainingFile ().getParent (),
154
- project
155
- );
156
- } else {
157
- return ;
158
152
}
153
+
159
154
final NamespaceBuilder namespaceBuilder = new NamespaceBuilder (
160
155
moduleName ,
161
156
getViewModelClassName (),
You can’t perform that action at this time.
0 commit comments