Skip to content

Commit

Permalink
small improves
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvag committed Nov 7, 2023
1 parent d961d8e commit 5e90989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package vivid.money.elmslie.core.config

import kotlin.concurrent.Volatile
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import vivid.money.elmslie.core.logger.ElmslieLogConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ data class Result<State : Any, Effect : Any, Command : Any>(
command: Command? = null,
) : this(
state = state,
effects = effect?.let(::listOf) ?: emptyList(),
commands = command?.let(::listOf) ?: emptyList(),
effects = listOfNotNull(effect),
commands = listOfNotNull(command),
)

constructor(
Expand Down

0 comments on commit 5e90989

Please sign in to comment.