Reformat ReplaceCallWithBinaryOperator
This commit is contained in:
+1
-2
@@ -151,8 +151,7 @@ class ReplaceCallWithBinaryOperatorInspection : AbstractApplicabilityBasedInspec
|
|||||||
val token = binaryParent.operationToken as? KtSingleValueToken ?: return null
|
val token = binaryParent.operationToken as? KtSingleValueToken ?: return null
|
||||||
if (token in OperatorConventions.COMPARISON_OPERATIONS) {
|
if (token in OperatorConventions.COMPARISON_OPERATIONS) {
|
||||||
if (notZero == binaryParent.left) token else token.inverted()
|
if (notZero == binaryParent.left) token else token.inverted()
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user