Minor: Fix formatting
This commit is contained in:
+4
-3
@@ -54,9 +54,10 @@ class UselessCallOnCollectionInspection : AbstractUselessCallInspection() {
|
|||||||
if (TypeUtils.isNullableType(receiverTypeArgument)) return
|
if (TypeUtils.isNullableType(receiverTypeArgument)) return
|
||||||
if (calleeExpression.text != "filterNotNull") {
|
if (calleeExpression.text != "filterNotNull") {
|
||||||
// Also check last argument functional type to have not-null result
|
// Also check last argument functional type to have not-null result
|
||||||
if (!resolvedCall.hasLastFunctionalParameterWithResult(context) {
|
val lastParameterMatches = resolvedCall.hasLastFunctionalParameterWithResult(context) {
|
||||||
!TypeUtils.isNullableType(it) && it.constructor !is TypeVariableTypeConstructor
|
!TypeUtils.isNullableType(it) && it.constructor !is TypeVariableTypeConstructor
|
||||||
}) return
|
}
|
||||||
|
if (!lastParameterMatches) return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user