summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/createReducer.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-09-24 23:24:47 +0200
committerSamy Pesse <samypesse@gmail.com>2016-09-24 23:24:47 +0200
commitfab88bb47e71ad47c928198ddbf7a4d0527e81bb (patch)
treed218193c775e125e0043d21ee216eed531f01b1b /packages/gitbook-core/src/createReducer.js
parentfa7cf3a65f7a19b2870e6d92c2e110e2356189ae (diff)
downloadgitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.zip
gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.tar.gz
gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.tar.bz2
Add flex box components
Diffstat (limited to 'packages/gitbook-core/src/createReducer.js')
-rw-r--r--packages/gitbook-core/src/createReducer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/gitbook-core/src/createReducer.js b/packages/gitbook-core/src/createReducer.js
index 4af6373..6860277 100644
--- a/packages/gitbook-core/src/createReducer.js
+++ b/packages/gitbook-core/src/createReducer.js
@@ -7,7 +7,7 @@
* @return {Function(state, action): state}
*/
function createReducer(name, reduce) {
- return function(state, action) {
+ return (state, action) => {
const value = state[name];
state[name] = reduce(value, action);
return state;