Showing 1,292 of 3,313 total issues
Avoid too many return
statements within this function. Open
Open
if (!checkVideoFileCanBeEdited(video, res)) return cleanUpReqFiles(req)
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.CONFLICT_409,
type: ServerErrorCode.VIDEO_ALREADY_BEING_TRANSCODED,
message: 'This video is already being transcoded'
})
Avoid too many return
statements within this function. Open
Open
return on404OrTombstone()
Avoid too many return
statements within this function. Open
Open
return false
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
if (!await isVideoCommentAccepted(req, res, res.locals.videoAll, false)) return
Avoid too many return
statements within this function. Open
Open
if (!await doesVideoCommentExist(req.params.commentId, res.locals.videoAll, res)) return
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
if (result.videoQuotaDaily && !isUserVideoQuotaDailyValid(result.videoQuotaDaily + '')) return returnError('videoQuotaDaily')
Avoid too many return
statements within this function. Open
Open
return true
Avoid too many return
statements within this function. Open
Open
return { input: stream, isTmpDestination: false }
Avoid too many return
statements within this function. Open
Open
return retryTransactionWrapper(processUndoAnnounce, byActor, activityToUndo)
Avoid too many return
statements within this function. Open
Open
return retryTransactionWrapper(processCreatePlaylist, activity, activityObject, byActor)
Avoid too many return
statements within this function. Open
Open
if (!o.live) return undefined
Avoid too many return
statements within this function. Open
Open
return pick(o, [
'name',
'duration',
'channel',
'privacy',
Avoid too many return
statements within this function. Open
Open
return null
Avoid too many return
statements within this function. Open
Open
return Promise.resolve(undefined)
Avoid too many return
statements within this function. Open
Open
if (diffSeconds >= 15 * aDay) return '1 day'
Avoid too many return
statements within this function. Open
Open
return '1 minute'