arkadiy93/project-lvl3-s444

View on GitHub

Showing 1 of 3 total issues

Function getRequest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getRequest = (resourceType) => {
  const requests = {
    img: (resourceUrl, resourcePath) => axios({ method: 'get', url: resourceUrl, responseType: 'stream' })
      .then(({ data }) => {
        axiosLog('resource %s download complete', resourceUrl);
Severity: Minor
Found in src/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language