intellij is telling me to remove that true because...
# announcements
s
intellij is telling me to remove that true because it is superfluous Thread in Slack Conversation i still don't understand this.
Copy code
fun bizz(a: Int) = when (a) {
            1 -> {
                bar()
                true
            }

            2 -> {
                if (foo()) {
                   doStuff()
                    true //"this statement is unused"..but why?
                }
                    false
            }
           else -> true