LiberTEM/LiberTEM

View on GitHub
client/src/cluster/reducers.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function clusterConnectionReducer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const clusterConnectionReducer = (state: ClusterConnectionState = initialClusterConnectionState, action: AllActions): ClusterConnectionState => {
    switch (action.type) {
        case clusterActions.ActionTypes.NOT_CONNECTED: {
            return {
                status: "disconnected"
Severity: Minor
Found in client/src/cluster/reducers.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status