ikhsanalatsary/multer-sharp

View on GitHub

Showing 2 of 2 total issues

Function _handleFile has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  _handleFile(req, file, cb) {
    this.getDestination(req, file, (destErr, destination) => {
      if (destErr) cb(destErr);
      this.getFilename(req, file, (fileErr, filename) => {
        if (fileErr) cb(fileErr);
Severity: Minor
Found in index.js - About 1 hr to fix

    Function _eachUpload has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      _eachUpload(file, filename, gcName, fileOptions, stream) {
        return (size) => {
          const filenameWithSuffix = `${filename}-${size.suffix}`;
          const gcNameBySuffix = `${gcName}-${size.suffix}`;
          const gcFile = this.gcsBucket.file(gcNameBySuffix);
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language