Skip to content

Commit

Permalink
Don't report no expression when type is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkyenus committed Oct 3, 2015
1 parent 73b2d72 commit 5ede414
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/glslplugin/actions/GLSLDeduceExpressionTypeAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 5ede414

Please sign in to comment.