From 568c6afc1405d6a657735f73d1e969bedb484627 Mon Sep 17 00:00:00 2001 From: aktsay Date: Thu, 31 Dec 2020 13:43:07 +0300 Subject: [PATCH] feature/more-prefixes-boolean-methods(#417) ### What's done: * Fixed bugs --- .../cqfn/diktat/ruleset/rules/NullChecksRule.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 =