Skip to content

Commit

Permalink
Fix the compilation error (Kotlin 1.7+)
Browse files Browse the repository at this point in the history
### What's done:

 * Non-exhaustive `if` and `when` blocks are no longer allowed when used as expressions
   (see <https://youtrack.jetbrains.com/issue/KT-44705>).
  • Loading branch information
0x6675636b796f75676974687562 committed Jun 15, 2022
1 parent 0959a2b commit d0b7226
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ class PackageNaming(configRules: List<RulesConfig>) : DiktatRule(
} ?: if (visitorCounter.incrementAndGet() == 1) {
log.error("Not able to find an external configuration for domain" +
" name in the common configuration (is it missing in yml config?)")
} else {
@Suppress("RedundantUnitExpression")
Unit
}
}

Expand Down

0 comments on commit d0b7226

Please sign in to comment.