Fix KtTypeReference.hasParentheses() to check for both LPAR *and* RPAR, as was originally intended

Minor typo fix. A year old typo had this redundantly checking for LPAR twice, rather than checking once for LPAR and once for RPAR.
This commit is contained in:
Corey Hates Git
2016-09-10 02:39:44 -04:00
committed by GitHub
parent 3f2f79ef59
commit 1d139d6b53
@@ -49,6 +49,6 @@ class KtTypeReference : KtElementImplStub<KotlinPlaceHolderStub<KtTypeReference>
}
fun hasParentheses(): Boolean {
return findChildByType<PsiElement>(KtTokens.LPAR) != null && findChildByType<PsiElement>(KtTokens.LPAR) != null
return findChildByType<PsiElement>(KtTokens.LPAR) != null && findChildByType<PsiElement>(KtTokens.RPAR) != null
}
}