src/applications/mhv-medical-records/reducers/refresh.js
Function refreshReducer
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const refreshReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Refresh.SET_INITIAL_FHIR_LOAD: {
return {
...state,
Avoid too many return
statements within this function. Open
Open
return refreshPhases.CURRENT;