import {
  applyMiddleware,
  compose,
  createStore
} from 'redux';
import thunk from 'redux-thunk';

const devtools = window.devToolsExtension || (() => (noop) => noop);

const middlewares = [thunk];

if (process.env.NODE_ENV !== 'production') {
  const {createLogger} = require('redux-logger'); // eslint-disable-line global-require
  const logger = createLogger({
    level: process.env.NODE_ENV === 'production' ? 'error' : 'info',
    duration: true,
    collapsed: false,
    logErrors: process.env.NODE_ENV === 'production'
  });
  middlewares.push(logger);
}

const enhancers = [
  applyMiddleware(...middlewares),
  devtools()
];

export default function initStore(reducers) {
  return createStore(
    reducers,
    compose(...enhancers)
  );
}

@@ -96,16 +96,17 @@
 hunk';%0A%0A
+%0A
 const de
@@ -376,58 +376,8 @@
 vel:
- process.env.NODE_ENV === 'production' ? 'error' :
  'in
@@ -442,45 +442,12 @@
 rs: 
-process.env.NODE_ENV === 'production'
+true
 %0A  %7D

Remove extraneous env checks