diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/NullChecksRule.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/NullChecksRule.kt index c42163bf7e..85c0c7dcfd 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/NullChecksRule.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/NullChecksRule.kt @@ -161,14 +161,14 @@ class NullChecksRule(private val configRules: List) : Rule("null-ch } private fun ASTNode.extractLinesFromBlock(type: IElementType): List? = - treeParent - .getFirstChildWithType(type) - ?.text - ?.trim('{', '}') - ?.split("\n") - ?.filter { it.isNotBlank() } - ?.map { it.trim() } - ?.toList() + treeParent + .getFirstChildWithType(type) + ?.text + ?.trim('{', '}') + ?.split("\n") + ?.filter { it.isNotBlank() } + ?.map { it.trim() } + ?.toList() @Suppress("UnsafeCallOnNullableType") private fun isNullCheckBinaryExpression(condition: KtBinaryExpression): Boolean =