Showing 3,313 of 3,313 total issues
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
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.')