Skip to content

Commit

Permalink
fix: key type can be nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhulbert committed Jul 5, 2024
1 parent e37baf6 commit f8c6fb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class LazyForeignValue<K, V>(val foreignKeyProvider: () -> K, val valueGenerator
else {
currentKey = foreignKey
val oldValue = currentValue
currentValue = valueGenerator(currentKey!!)
currentValue = valueGenerator(currentKey as K)
oldValueHandler?.invoke(oldValue)
currentValue as V
}
Expand Down

0 comments on commit f8c6fb7

Please sign in to comment.