Showing 1 of 1 total issue
Function upload
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const upload = (s3, bucket, webLocation, body, parts, token) => {
return Promise
.try(() => {
UploadJSONType(body)
const ext = body.mimeType === 'image/png' ? 'png' : 'jpg'