Showing 1,292 of 3,313 total issues
Avoid too many return
statements within this function. Open
Open
return undefined
Avoid too many return
statements within this function. Open
Open
return true
Avoid too many return
statements within this function. Open
Open
if (mimeTypeRegex === null) return true
Avoid too many return
statements within this function. Open
Open
if (!setValidRemoteIcon(video)) return fail('icons')
Avoid too many return
statements within this function. Open
Open
if (exists(video.originallyPublishedAt) && !isDateValid(video.originallyPublishedAt)) return fail('originallyPublishedAt')
Avoid too many return
statements within this function. Open
Open
return forceNumber(start) < forceNumber(end)
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
Avoid too many return
statements within this function. Open
Open
return fail('Video password should be a string.')
Avoid too many return
statements within this function. Open
Open
if (!isVideoViewsValid(video.views)) return fail('views')
Avoid too many return
statements within this function. Open
Open
if (!isDateValid(video.updated)) return fail('updated')
Avoid too many return
statements within this function. Open
Open
if (playlistExists === true) return cb()
Avoid too many return
statements within this function. Open
Open
if (CONFIG.INSTANCE.DEFAULT_NSFW_POLICY === 'do_not_list') return false
Avoid too many return
statements within this function. Open
Open
return fail('Invalid video password. Password length should be at least 2 characters and no more than 100 characters.')
Avoid too many return
statements within this function. Open
Open
if (!setValidAttributedTo(video)) return fail('attributedTo')
Avoid too many return
statements within this function. Open
Open
if (exists(video.uploadDate) && !isDateValid(video.uploadDate)) return fail('uploadDate')
Avoid too many return
statements within this function. Open
Open
return true
Avoid too many return
statements within this function. Open
Open
return res.fail({
message: 'Cannot delete this user export because its state is not compatible with a deletion'
})
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.FORBIDDEN_403,
message: 'Cannot get this video regarding follow constraints',
type: ServerErrorCode.DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS,
data: {
Avoid too many return
statements within this function. Open
Open
return next()