ReplaceArrayOfWithLiteralInspection: Remove unnecessary parentheses

#KT-21878 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-05-07 18:44:34 +03:00
committed by Alexey Sedunov
parent c95ed9fd20
commit 8271e85dbb
4 changed files with 29 additions and 0 deletions
@@ -449,6 +449,8 @@ public class KtPsiUtil {
return false;
}
if (parentElement instanceof KtCollectionLiteralExpression) return false;
if (innerExpression instanceof KtIfExpression) {
if (parentElement instanceof KtQualifiedExpression) return true;