makeomatic/ms-files

View on GitHub
src/actions/clone.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function cloneFile has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function cloneFile(lock, ctx, params) {
  const { uploadId, username, meta } = params;
  const { redis } = ctx;
  const uploadKey = FILES_DATA_INDEX_KEY(uploadId);
  const uploadData = await Promise
Severity: Major
Found in src/actions/clone.js - About 2 hrs to fix

    Parsing error: The keyword 'const' is reserved
    Open

    const { ActionTransport } = require('@microfleet/plugin-router');
    Severity: Minor
    Found in src/actions/clone.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status