Showing 1,292 of 3,313 total issues
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')
Avoid too many return
statements within this function. Open
Open
if (!isVideoNameValid(video.name)) return fail('name')
Avoid too many return
statements within this function. Open
Open
if (exists(video.category) && !isRemoteNumberIdentifierValid(video.category)) return fail('category')
Avoid too many return
statements within this function. Open
Open
if (exists(video.content) && !isRemoteVideoContentValid(video.mediaType, video.content)) return fail('mediaType/content')
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.NOT_FOUND_404,
message: 'Video redundancy not found.'
})
Avoid too many return
statements within this function. Open
Open
return parseInt(match[1], 10) * 1024 * 1024 * 1024 * 1024
Avoid too many return
statements within this function. Open
Open
return undefined