diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-06-28 21:41:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 21:41:34 +0900 |
commit | d0c23587f8ee8c1bca38f036ae8f71078d6ca937 (patch) | |
tree | 2c5cb4aea22de3de6360220a6291440c7ac18230 /src/content/reducers/addon.js | |
parent | 6d0732eb80f2a2b2546e659662537bf4e40d7e5c (diff) | |
parent | 05faaced137eb3a48780806fded04fd76bd9a84e (diff) |
Merge pull request #423 from ueokande/greenkeeper/eslint-5.0.1
Update eslint
Diffstat (limited to 'src/content/reducers/addon.js')
-rw-r--r-- | src/content/reducers/addon.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/content/reducers/addon.js b/src/content/reducers/addon.js index 8cc5ef1..b881ca0 100644 --- a/src/content/reducers/addon.js +++ b/src/content/reducers/addon.js @@ -7,17 +7,14 @@ const defaultState = { export default function reducer(state = defaultState, action = {}) { switch (action.type) { case actions.ADDON_ENABLE: - return Object.assign({}, state, { - enabled: true, - }); + return { ...state, + enabled: true, }; case actions.ADDON_DISABLE: - return Object.assign({}, state, { - enabled: false, - }); + return { ...state, + enabled: false, }; case actions.ADDON_TOGGLE_ENABLED: - return Object.assign({}, state, { - enabled: !state.enabled, - }); + return { ...state, + enabled: !state.enabled, }; default: return state; } |