From c3816b4bab86a578c2de025775489fcb47b90cd2 Mon Sep 17 00:00:00 2001 From: Kevin Schildhorn Date: Thu, 24 Oct 2024 14:36:12 -0400 Subject: [PATCH] Update shared/src/iosMain/kotlin/co/touchlab/droidcon/util/BundleResourceReader.kt Co-authored-by: Tadeas Kriz --- .../co/touchlab/droidcon/util/BundleResourceReader.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shared/src/iosMain/kotlin/co/touchlab/droidcon/util/BundleResourceReader.kt b/shared/src/iosMain/kotlin/co/touchlab/droidcon/util/BundleResourceReader.kt index 13e1d3e5..db16b882 100644 --- a/shared/src/iosMain/kotlin/co/touchlab/droidcon/util/BundleResourceReader.kt +++ b/shared/src/iosMain/kotlin/co/touchlab/droidcon/util/BundleResourceReader.kt @@ -33,10 +33,8 @@ class BundleResourceReader( name to null } } - val path = bundle - .pathForResource(filename, type) ?: error( - "Couldn't get path of $name (parsed as: ${listOfNotNull(filename, type) - .joinToString(".")})" + val path = bundle.pathForResource(filename, type) ?: error( + "Couldn't get path of $name (parsed as: ${listOfNotNull(filename, type).joinToString(".")})" ) return memScoped {