Quick sanity check: these two pieces of code are e...
# announcements
k
Quick sanity check: these two pieces of code are equivalent, and both cases either `onClick`or
throw
should be run, right?
Copy code
//code #0
    selector?.onClick(event) ?: throw ItemSelectorNotFound()

    //code #1
    if (selector != null) {
        selector.onClick(event)
    } else {
        throw ItemSelectorNotFound()
    }