Minor: Fix formatting

This commit is contained in:
Yan Zhulanow
2020-03-04 23:02:08 +09:00
parent 4638a97bbc
commit d86b54a2f1
@@ -54,9 +54,10 @@ class UselessCallOnCollectionInspection : AbstractUselessCallInspection() {
if (TypeUtils.isNullableType(receiverTypeArgument)) return
if (calleeExpression.text != "filterNotNull") {
// Also check last argument functional type to have not-null result
if (!resolvedCall.hasLastFunctionalParameterWithResult(context) {
!TypeUtils.isNullableType(it) && it.constructor !is TypeVariableTypeConstructor
}) return
val lastParameterMatches = resolvedCall.hasLastFunctionalParameterWithResult(context) {
!TypeUtils.isNullableType(it) && it.constructor !is TypeVariableTypeConstructor
}
if (!lastParameterMatches) return
}
}