cnap-cobre/synapse

View on GitHub
frontend/src/store/ui/browserPaths/reducer.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function browserPaths has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function browserPaths(state = initialBrowserPathsState, action) {
switch (action.type) {
case agaveFileSystemsTypes.GET_AGAVE_FILE_SYSTEMS_ASYNC.SUCCESS: {
const keysFromAction = action.systems.reduce((acc, cv) => {
acc[`${cv.provider}.${cv.id}`] = ['', cv.provider, cv.id, ''].join('/');
Severity: Minor
Found in frontend/src/store/ui/browserPaths/reducer.js - About 1 hr to fix
    Category
    Status