We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a626d5 commit 1e0024cCopy full SHA for 1e0024c
redux-kotlin-thunk/src/commonMain/kotlin/org/reduxkotlin/Thunk.kt
@@ -29,10 +29,10 @@ fun <State> createThunkMiddleware(extraArgument: Any? = null): ThunkMiddleware<S
29
if (action is Function<*>) {
30
@Suppress("UNCHECKED_CAST")
31
val thunk = try {
32
- (action as Thunk<*>)
33
- } catch (e: ClassCastException) {
34
- throw IllegalArgumentException("Dispatching functions must use type Thunk:", e)
35
- }
+ (action as Thunk<*>)
+ } catch (e: ClassCastException) {
+ throw IllegalArgumentException("Dispatching functions must use type Thunk:", e)
+ }
36
thunk(store.dispatch, store.getState, extraArgument)
37
} else {
38
next(action)
0 commit comments