if expressions that have true or false
constant literal condition and can be simplified.
While occasionally intended, this construction is confusing and often the result of a typo or previous refactoring.
Example:
fun example() {
if (true) {
throw IllegalStateException("Unexpected state")
}
}
A quick-fix removes the if condition:
fun example() {
throw IllegalStateException("Unexpected state")
}