src/applications/third-party-app-directory/reducers/index.js
Function thirdPartyAppsReducer
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const thirdPartyAppsReducer = (state = initialState, action) => {
switch (action.type) {
case FETCH_RESULTS: {
return {
...state,
Avoid too many return
statements within this function. Open
Open
return { ...state };
Avoid too many return
statements within this function. Open
Open
return {
...state,
scopes: {
...state.scopes,
[action.scopeCategory]: action.response.data,
Avoid too many return
statements within this function. Open
Open
return {
...state,
error: action.error,
};