Skip to content

Commit

Permalink
Fix casting error caused by previous commmit (#4)
Browse files Browse the repository at this point in the history
* Fix casting error

* Add null check just to be sure

* Better null check actually
  • Loading branch information
LichtHund authored Apr 23, 2024
1 parent 53d70e4 commit 40cc5f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public open class DelegateTrigger : Trigger {
.asMap()

override fun trigger() {
updateListeners.forEach { (_, listeners) ->
listeners.forEach { it() }
updateListeners.forEach { (obj, listeners) ->
listeners.forEach { obj?.apply(it) }
}
}

Expand Down

0 comments on commit 40cc5f6

Please sign in to comment.