From c58c17b9674cdfa7838f422dbccd8e238d31d415 Mon Sep 17 00:00:00 2001 From: NichtStudioCode <51272202+NichtStudioCode@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:14:02 +0100 Subject: [PATCH] Rename incorrectly named orElseLazily --- .../kotlin/xyz/xenondevs/commons/provider/FallbackProviders.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-provider/src/main/kotlin/xyz/xenondevs/commons/provider/FallbackProviders.kt b/commons-provider/src/main/kotlin/xyz/xenondevs/commons/provider/FallbackProviders.kt index f5f6610..8f6e687 100644 --- a/commons-provider/src/main/kotlin/xyz/xenondevs/commons/provider/FallbackProviders.kt +++ b/commons-provider/src/main/kotlin/xyz/xenondevs/commons/provider/FallbackProviders.kt @@ -146,7 +146,7 @@ fun MutableProvider.strongOrElseLazily(lazyValue: () -> T): Mutabl * * The returned provider will only be stored in a [WeakReference] in the parent provider ([this][MutableProvider]). */ -fun MutableProvider.strongOrElseLazily(lazyValue: () -> T): MutableProvider = +fun MutableProvider.orElseLazily(lazyValue: () -> T): MutableProvider = orElse(provider(lazyValue)) /**