Skip to content

Commit

Permalink
feature/more-prefixes-boolean-methods(#417)
Browse files Browse the repository at this point in the history
### What's done:
 * Fixed bugs
  • Loading branch information
aktsay6 committed Dec 31, 2020
1 parent 9976e55 commit 568c6af
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ class NullChecksRule(private val configRules: List<RulesConfig>) : Rule("null-ch
}

private fun ASTNode.extractLinesFromBlock(type: IElementType): List<String>? =
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 =
Expand Down

0 comments on commit 568c6af

Please sign in to comment.