Skip to content

Commit

Permalink
Update detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt…
Browse files Browse the repository at this point in the history
…/rules/style/ReturnCount.kt

Co-authored-by: marschwar <marschwar@users.noreply.github.com>
  • Loading branch information
BraisGabin and marschwar committed Aug 1, 2022
1 parent 0fffa58 commit 1af95ed
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,5 @@ class ReturnCount(config: Config = Config.empty) : Rule(config) {
}

private operator fun Iterable<Regex>.contains(input: String?): Boolean {
input ?: return false
return any { it.matches(input) }
return input != null && any { it.matches(input) }
}

0 comments on commit 1af95ed

Please sign in to comment.