diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-01 00:25:18 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-01 00:25:18 +0800 |
commit | cc2719492d72602ecd1c503cf0ecee95cd05db33 (patch) | |
tree | 9f095c247a3f87a9c85fb8dc1eb0789e6958d989 /packages | |
parent | d6755472087af76982779728db7424b1171a1b47 (diff) | |
download | dexon-sol-tools-cc2719492d72602ecd1c503cf0ecee95cd05db33.tar dexon-sol-tools-cc2719492d72602ecd1c503cf0ecee95cd05db33.tar.gz dexon-sol-tools-cc2719492d72602ecd1c503cf0ecee95cd05db33.tar.bz2 dexon-sol-tools-cc2719492d72602ecd1c503cf0ecee95cd05db33.tar.lz dexon-sol-tools-cc2719492d72602ecd1c503cf0ecee95cd05db33.tar.xz dexon-sol-tools-cc2719492d72602ecd1c503cf0ecee95cd05db33.tar.zst dexon-sol-tools-cc2719492d72602ecd1c503cf0ecee95cd05db33.zip |
Remove default in state reducer
This allows us to ensure that we explicitly handle every action type
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/src/redux/reducer.ts | 2 | ||||
-rw-r--r-- | packages/instant/tslint.json | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts index 11980066b..a3f38c880 100644 --- a/packages/instant/src/redux/reducer.ts +++ b/packages/instant/src/redux/reducer.ts @@ -187,8 +187,6 @@ export const reducer = (state: State = INITIAL_STATE, action: Action): State => buyOrderState: { processState: OrderProcessState.NONE }, selectedAssetAmount: undefined, }; - default: - return state; } }; diff --git a/packages/instant/tslint.json b/packages/instant/tslint.json index 08b76be97..d43ee8da7 100644 --- a/packages/instant/tslint.json +++ b/packages/instant/tslint.json @@ -3,6 +3,7 @@ "rules": { "custom-no-magic-numbers": false, "semicolon": [true, "always", "ignore-bound-class-methods"], - "max-classes-per-file": false + "max-classes-per-file": false, + "switch-default": false } } |