From 50169b11dd7083753b99efd3dafe73feb621811d Mon Sep 17 00:00:00 2001 From: Kamil Gurgul Date: Wed, 25 Dec 2024 09:54:34 +0100 Subject: [PATCH] [SHARED] Code cleanup --- .../cpuinfo/data/provider/HardwareDataProvider.android.kt | 2 +- .../kgurgul/cpuinfo/data/provider/HardwareDataProvider.ios.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/androidMain/kotlin/com/kgurgul/cpuinfo/data/provider/HardwareDataProvider.android.kt b/shared/src/androidMain/kotlin/com/kgurgul/cpuinfo/data/provider/HardwareDataProvider.android.kt index 24031127..478875e5 100644 --- a/shared/src/androidMain/kotlin/com/kgurgul/cpuinfo/data/provider/HardwareDataProvider.android.kt +++ b/shared/src/androidMain/kotlin/com/kgurgul/cpuinfo/data/provider/HardwareDataProvider.android.kt @@ -372,7 +372,7 @@ actual class HardwareDataProvider actual constructor() : KoinComponent { /** * Get available data connected with sound card like ALSA version etc. */ - private suspend fun getSoundCardInfo(): List { + private fun getSoundCardInfo(): List { val functionsList = mutableListOf() val soundCardNumber = getSoundCardNumber() diff --git a/shared/src/iosMain/kotlin/com/kgurgul/cpuinfo/data/provider/HardwareDataProvider.ios.kt b/shared/src/iosMain/kotlin/com/kgurgul/cpuinfo/data/provider/HardwareDataProvider.ios.kt index 4de18e12..68978455 100644 --- a/shared/src/iosMain/kotlin/com/kgurgul/cpuinfo/data/provider/HardwareDataProvider.ios.kt +++ b/shared/src/iosMain/kotlin/com/kgurgul/cpuinfo/data/provider/HardwareDataProvider.ios.kt @@ -89,7 +89,7 @@ actual class HardwareDataProvider actual constructor() { } } - private suspend fun getBatteryState(): StringResource { + private fun getBatteryState(): StringResource { val batteryState = UIDevice.currentDevice.batteryState return when (batteryState) { UIDeviceBatteryState.UIDeviceBatteryStateUnplugged ->