KT-19896: Fix force parenthesizing of multiline elvis
#KT-19896 fixed
This commit is contained in:
@@ -530,7 +530,10 @@ public class KtPsiUtil {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (innerExpression instanceof KtBinaryExpression && isKeepBinaryExpressionParenthesized((KtBinaryExpression) innerExpression)) {
|
// '(x operator y)' case
|
||||||
|
if (innerExpression instanceof KtBinaryExpression &&
|
||||||
|
innerOperation != KtTokens.ELVIS &&
|
||||||
|
isKeepBinaryExpressionParenthesized((KtBinaryExpression) innerExpression)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user