Description
Before
val bool: Boolean bool match { case true => do something when bool is true case false => do something when bool is false }
After
val bool: Boolean if (bool) { do something when bool is true } else { do something when bool is false }