Showing 2 of 2 total issues
Function _handleFile
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function _eachUpload
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);