Skip to content

Commit

Permalink
Rename incorrectly named orElseLazily
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Nov 6, 2024
1 parent 11c4e9e commit c58c17b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fun <T : Any> MutableProvider<T?>.strongOrElseLazily(lazyValue: () -> T): Mutabl
*
* The returned provider will only be stored in a [WeakReference] in the parent provider ([this][MutableProvider]).
*/
fun <T : Any> MutableProvider<T?>.strongOrElseLazily(lazyValue: () -> T): MutableProvider<T> =
fun <T : Any> MutableProvider<T?>.orElseLazily(lazyValue: () -> T): MutableProvider<T> =
orElse(provider(lazyValue))

/**
Expand Down

0 comments on commit c58c17b

Please sign in to comment.