Minor. Removed redundant cast.

This commit is contained in:
Evgeny Gerashchenko
2014-10-09 20:25:47 +04:00
parent 9829fd83a0
commit 27238a470a
@@ -101,7 +101,7 @@ public class SpecifyTypeExplicitlyAction extends PsiElementBaseIntentionAction {
setText(JetBundle.message("specify.type.explicitly.add.return.type.action.name"));
}
else if (declaration instanceof JetParameter && ((JetParameter) declaration).isLoopParameter()) {
if (((JetParameter) declaration).getTypeReference() != null) {
if (declaration.getTypeReference() != null) {
setText(JetBundle.message("specify.type.explicitly.remove.action.name"));
return true;
}