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() {
141141 exit ();
142142 return ;
143143 }
144+
144145 if (targetBlockTag .getContainingFile () == null || targetBlockTag .getContainingFile ().getParent () == null ) {
145146 return ;
146- }
147+ } else {
147148 final String moduleName = GetModuleNameByDirectoryUtil .execute (
148149 targetBlockTag .getContainingFile ().getParent (),
149150 project
150151 );
151- targetBlockTag .getContainingFile ().getParent () != null ) {
152- final String moduleName = GetModuleNameByDirectoryUtil .execute (
153- targetBlockTag .getContainingFile ().getParent (),
154- project
155- );
156- } else {
157- return ;
158152 }
153+
159154 final NamespaceBuilder namespaceBuilder = new NamespaceBuilder (
160155 moduleName ,
161156 getViewModelClassName (),
You can’t perform that action at this time.
0 commit comments