From 83b358f1614de9714d4870287a91cdaf383b1f9d Mon Sep 17 00:00:00 2001 From: Satoshi Otomakan Date: Tue, 5 Nov 2024 12:29:59 +0100 Subject: [PATCH] [Chore]: Fix unnecessary null assertion in WalletCoreLibLoader.kt --- .../kotlin/com/trustwallet/core/WalletCoreLibLoader.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin/wallet-core-kotlin/src/commonAndroidJvmMain/kotlin/com/trustwallet/core/WalletCoreLibLoader.kt b/kotlin/wallet-core-kotlin/src/commonAndroidJvmMain/kotlin/com/trustwallet/core/WalletCoreLibLoader.kt index 23c20a24897..7c2b43eed0e 100644 --- a/kotlin/wallet-core-kotlin/src/commonAndroidJvmMain/kotlin/com/trustwallet/core/WalletCoreLibLoader.kt +++ b/kotlin/wallet-core-kotlin/src/commonAndroidJvmMain/kotlin/com/trustwallet/core/WalletCoreLibLoader.kt @@ -34,9 +34,9 @@ object WalletCoreLibLoader { } private fun getLibResourcePath(): String { - val osNameOriginal = System.getProperty("os.name").lowercase() + val osNameOriginal = System.getProperty("os.name")!!.lowercase() val osName = osNameOriginal.lowercase() - val archOriginal = System.getProperty("os.arch").lowercase() + val archOriginal = System.getProperty("os.arch")!!.lowercase() val arch = archOriginal.lowercase() return when {