diff --git a/src/glslplugin/actions/GLSLDeduceExpressionTypeAction.java b/src/glslplugin/actions/GLSLDeduceExpressionTypeAction.java index 90323cda..3ef7d6ac 100755 --- a/src/glslplugin/actions/GLSLDeduceExpressionTypeAction.java +++ b/src/glslplugin/actions/GLSLDeduceExpressionTypeAction.java @@ -34,7 +34,6 @@ import glslplugin.lang.GLSLLanguage; import glslplugin.lang.elements.expressions.GLSLExpression; import glslplugin.lang.elements.types.GLSLType; -import glslplugin.lang.elements.types.GLSLTypes; import org.jetbrains.annotations.NotNull; import javax.swing.*; @@ -68,9 +67,7 @@ public void actionPerformed(@NotNull AnActionEvent e) { if (expr != null) { expressionText = expr.getText(); GLSLType type = expr.getType(); - if (type != GLSLTypes.UNKNOWN_TYPE) { - typename = type.getTypename(); - } + typename = type.getTypename(); if(expr.isConstantValue()){ final Object constValue = expr.getConstantValue();