https://kotlinlang.org logo
k

kirillrakhman

03/18/2016, 12:45 PM
I would have actually prefered an early return
if (arg2 == null) return
but you need to use a label inside a lambda which is a bit more cumbersome:
if (arg2 == null) return@addListener
1