client/src/cluster/reducers.ts
Function clusterConnectionReducer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const clusterConnectionReducer = (state: ClusterConnectionState = initialClusterConnectionState, action: AllActions): ClusterConnectionState => {
switch (action.type) {
case clusterActions.ActionTypes.NOT_CONNECTED: {
return {
status: "disconnected"