elvis 연산자 대신 상등 검사가 사용되어야 하는 경우를 보고합니다.

예:


fun check(a: Boolean? = null) {
    if (a ?: false) throw IllegalStateException()
}

빠른 수정을 적용한 후:


fun check(a: Boolean? = null) {
    if (a == true) throw IllegalStateException()
}