RHeactorJS/image-service

View on GitHub

Showing 1 of 1 total issue

Function upload has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const upload = (s3, bucket, webLocation, body, parts, token) => {
  return Promise
    .try(() => {
      UploadJSONType(body)
      const ext = body.mimeType === 'image/png' ? 'png' : 'jpg'
Severity: Minor
Found in src/operations/upload.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language