Showing 3,313 of 3,313 total issues
Avoid too many return
statements within this function. Open
Open
if (newSize.height >= 500) return imageBytes <= 100 * kB
Avoid too many return
statements within this function. Open
Open
return null
Avoid too many return
statements within this function. Open
Open
if (!start || !end) return true
Avoid too many return
statements within this function. Open
Open
if (video.attributedTo.length === 0) return fail('attributedTo')
Avoid too many return
statements within this function. Open
Open
if (!isActivityPubUrlValid(video.id)) return fail('id')
Avoid too many return
statements within this function. Open
Open
return cb(err)
Avoid too many return
statements within this function. Open
Open
if (end && !validator.default.isInt(end + '', CONSTRAINTS_FIELDS.VIDEO_STUDIO.CUT_TIME)) return false
Avoid too many return
statements within this function. Open
Open
return true
Avoid too many return
statements within this function. Open
Open
if (!isVideoDurationValid(video.duration.replace(/[^0-9]+/g, ''))) return fail('duration')
Avoid too many return
statements within this function. Open
Open
if (exists(video.language) && !isRemoteStringIdentifierValid(video.language)) return fail('language')
Avoid too many return
statements within this function. Open
Open
return res.send(feed.rss2()).end()
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
return parseInt(match[1], 10) * 1024 * 1024 * 1024
Avoid too many return
statements within this function. Open
Open
if (!setValidLicence(video)) return fail('licence')
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.FORBIDDEN_403,
message: 'ActivityPub signature could not be checked'
})
Avoid too many return
statements within this function. Open
Open
return
Avoid too many return
statements within this function. Open
Open
return parseInt(match[1], 10) * 1024 * 1024
Avoid too many return
statements within this function. Open
Open
return parseInt(value, 10)
Avoid too many return
statements within this function. Open
Open
if (!isDateValid(video.published)) return fail('published')
Avoid too many return
statements within this function. Open
Open
if (!setValidRemoteCaptions(video)) return fail('captions')