Skip to content

Commit

Permalink
Fix the compilation error (Kotlin 1.7+) (#1365)
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 [KT-44705](https://youtrack.jetbrains.com/issue/KT-44705)).
  • Loading branch information
0x6675636b796f75676974687562 authored Jun 16, 2022
1 parent 0959a2b commit aa093cc
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 aa093cc

Please sign in to comment.