Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
remove unnecessary else branch to fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
cinnabarcaracal committed Feb 5, 2019
1 parent 79f945e commit 5fc2c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handle-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export default function handleAction<S, AC extends TsActionCreator<any> = any>(

if (finishedDraft === state && reResult !== undefined) {
return reResult;
} else {
return finishedDraft;
}

return finishedDraft;
}
return (state || s) as any;
};
Expand Down

0 comments on commit 5fc2c86

Please sign in to comment.