cnap-cobre/synapse

View on GitHub
frontend/src/store/files/sagas.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 3 of 3 total issues

TODO found
Open

yield put(removeFocusedFile(action.file.fullPath)); // TODO: select file under new name if successful
Severity: Minor
Found in frontend/src/store/files/sagas.js by fixme

Similar blocks of code found in 2 locations. Consider refactoring.
Open

function* uploadFile(action) {
try {
const csrfToken = yield select(getCsrf);
const ProviderService = resolveProviderService(action.path);
yield call(ProviderService.uploadFile, csrfToken, action.file, action.path);
Severity: Minor
Found in frontend/src/store/files/sagas.js and 1 other location - About 55 mins to fix
frontend/src/store/files/sagas.js on lines 121..130

Similar blocks of code found in 2 locations. Consider refactoring.
Open

function* makeDirectory(action) {
try {
const csrfToken = yield select(getCsrf);
const ProviderService = resolveProviderService(action.path);
yield call(ProviderService.mkdir, csrfToken, action.path, action.name);
Severity: Minor
Found in frontend/src/store/files/sagas.js and 1 other location - About 55 mins to fix
frontend/src/store/files/sagas.js on lines 110..119

There are no issues that match your filters.

Category
Status