src/reducers/menu.js
Function menu
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function menu(state={}, action) {
switch(action.type){
case types.INITIALIZE_KEYWORD :
state.keywords = action.keywords;
state.activeKeyword = 'all';
Avoid too many return
statements within this function. Open
Open
return Object.assign({}, state);
Avoid too many return
statements within this function. Open
Open
return Object.assign({}, state);
Avoid too many return
statements within this function. Open
Open
return Object.assign({}, state);
Avoid too many return
statements within this function. Open
Open
return Object.assign({}, state);