From 23d0358941038753ee7a8cbd2b141b6b06084b2e Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Mon, 8 Sep 2014 18:48:51 +0400 Subject: [PATCH] cleanup --- .../intellij/codeInsight/editorActions/XmlEqTypedHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/impl/src/com/intellij/codeInsight/editorActions/XmlEqTypedHandler.java b/xml/impl/src/com/intellij/codeInsight/editorActions/XmlEqTypedHandler.java index 656a061b9b4a..bd0d76c42d38 100644 --- a/xml/impl/src/com/intellij/codeInsight/editorActions/XmlEqTypedHandler.java +++ b/xml/impl/src/com/intellij/codeInsight/editorActions/XmlEqTypedHandler.java @@ -38,7 +38,7 @@ public class XmlEqTypedHandler extends TypedHandlerDelegate { PsiElement at = file.findElementAt(editor.getCaretModel().getOffset() - 1); PsiElement atParent = at != null ? at.getParent() : null; if(atParent instanceof XmlAttribute && ((XmlAttribute)atParent).getValueElement() == null) { - needToInsertQuotes = atParent instanceof XmlAttribute && ((XmlAttribute)atParent).getValueElement() == null; + needToInsertQuotes = ((XmlAttribute)atParent).getValueElement() == null; } } }