Skip to content

Commit 95d1bf0

Browse files
author
keenondrums
committed
Fix linting issues
1 parent db563d7 commit 95d1bf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/decorator-action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const getActionType = (action: IAction | IActionConstructor | IActionCreator | s
2727
}
2828
try {
2929
if (isArrowFunction(action)) {
30-
const actionCreatorArrowFnRes = (action as IActionCreator)()
30+
const actionCreatorArrowFnRes = action()
3131
return actionCreatorArrowFnRes.type
3232
}
33-
const classInstance = new (action as IActionConstructor)()
33+
const classInstance = new action()
3434
return classInstance.type
3535
} catch {
3636
// Fall back in case action construction failed due to missing arguments

0 commit comments

Comments
 (0)