Actual ktfmt formatting:
fun getModifier(modifierType: ModifierType): (MyObject) -> MyModifiedObject {
when (modifierType) {
is FirstModifierType -> { myObject ->
doCustomModificationForFirstModifierType(modifierType, myObject)
}
is SecondModifierType -> { myObject ->
doCustomModificationForSecondModifierType(modifierType, myObject)
}
}
}
Expected ktfmt formatting:
fun getModifier(modifierType: ModifierType): (MyObject) -> MyModifiedObject {
when (modifierType) {
is FirstModifierType -> { myObject ->
doCustomModificationForFirstModifierType(modifierType, myObject)
}
is SecondModifierType -> { myObject ->
doCustomModificationForSecondModifierType(modifierType, myObject)
}
}
}
Actual ktfmt formatting:
Expected ktfmt formatting: