Skip to content

Commit

Permalink
BaseUseCase#assertInputParamsNotNull does not need to be a suspend fu…
Browse files Browse the repository at this point in the history
…nction
  • Loading branch information
Tweener committed Apr 8, 2024
1 parent 8ec9896 commit 81a0e61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class BaseUseCase<InputParams, OutputParams, T> {
* @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)
}
Expand Down

0 comments on commit 81a0e61

Please sign in to comment.