79794392

Date: 2025-10-19 17:11:07
Score: 0.5
Natty:
Report link

A bit late to the party, but wrapping then when in a do {} while (false) "loop" gives you a regular break without any label or lambda shenanigans:

do when (transaction.state) {
    Transaction.Type.EXPIRED,
    Transaction.Type.BLOCKED -> {
        break
    }
} while (false)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kiw