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 09e5d1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ 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 Unit
}

/**
Expand Down

0 comments on commit 09e5d1b

Please sign in to comment.