From 81a0e6136b1bc584dbfd1c71f76a4cb0a56b33a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vivien=20Mah=C3=A9?= Date: Mon, 8 Apr 2024 15:19:02 +0200 Subject: [PATCH] BaseUseCase#assertInputParamsNotNull does not need to be a suspend function --- .../kotlin/com/tweener/changehere/domain/usecase/BaseUseCase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/domain/src/commonMain/kotlin/com/tweener/changehere/domain/usecase/BaseUseCase.kt b/shared/domain/src/commonMain/kotlin/com/tweener/changehere/domain/usecase/BaseUseCase.kt index 1d60538..10e9586 100644 --- a/shared/domain/src/commonMain/kotlin/com/tweener/changehere/domain/usecase/BaseUseCase.kt +++ b/shared/domain/src/commonMain/kotlin/com/tweener/changehere/domain/usecase/BaseUseCase.kt @@ -21,7 +21,7 @@ abstract class BaseUseCase { * @throws MissingUseCaseInputParamsException */ @OptIn(ExperimentalContracts::class) - suspend inline fun assertInputParamsNotNull(params: InputParams? = null): InputParams { + inline fun assertInputParamsNotNull(params: InputParams? = null): InputParams { contract { returns() implies (params != null) }