File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
redux-kotlin-thunk/src/commonMain/kotlin/org/reduxkotlin Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1- name : Test
1+ name : PR
22
33on :
44 pull_request :
77 - ' *.md'
88
99jobs :
10+ ktlint :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+
16+ - name : Ktlint
17+ uses : " vroy/gha-kotlin-linter@v1"
1018 test :
1119 runs-on : ${{ matrix.os }}
1220 strategy :
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ fun <State> createThunkMiddleware(extraArgument: Any? = null): ThunkMiddleware<S
2929 if (action is Function <* >) {
3030 @Suppress(" UNCHECKED_CAST" )
3131 val thunk = try {
32- (action as Thunk <* >)
33- } catch (e: ClassCastException ) {
34- throw IllegalArgumentException (" Dispatching functions must use type Thunk:" , e)
35- }
32+ (action as Thunk <* >)
33+ } catch (e: ClassCastException ) {
34+ throw IllegalArgumentException (" Dispatching functions must use type Thunk:" , e)
35+ }
3636 thunk(store.dispatch, store.getState, extraArgument)
3737 } else {
3838 next(action)
You can’t perform that action at this time.
0 commit comments