Skip to content

Commit b10e49c

Browse files
committed
fix: explicitly type Unit parameter in listeners lambda
1 parent 2f17127 commit b10e49c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/main/java/com/margelo/nitro/rive/HybridViewModelListProperty.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class HybridViewModelListProperty(private val listProperty: ViewModelListPropert
5757
}
5858

5959
override fun addListener(onChanged: () -> Unit) {
60-
listeners.add { onChanged() }
60+
listeners.add { _: Unit -> onChanged() }
6161
ensureValueListenerJob(listProperty.valueFlow.map { })
6262
}
6363
}

0 commit comments

Comments
 (0)