Showing 1,292 of 3,313 total issues
Avoid too many return
statements within this function. Open
Open
if (channel && !checkUserCanManageAccount({ account: channel.Account, user, res, specialRight: UserRight.SEE_ALL_COMMENTS })) return
Avoid too many return
statements within this function. Open
Open
if (!checkUserCanManageVideo(user, video, UserRight.UPDATE_ANY_VIDEO, res)) return cleanUpReqFiles(req)
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, true)) return
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
return this.abortSession(sessionId)
Avoid too many return
statements within this function. Open
Open
return replaceLiveByReplay({
video,
liveSession,
live,
permanentLive,
Avoid too many return
statements within this function. Open
Open
if (body.forceTranscoding === true) return next()
Avoid too many return
statements within this function. Open
Open
if (result.adminFlags && !isUserAdminFlagsValid(result.adminFlags)) return returnError('adminFlags')
Avoid too many return
statements within this function. Open
Open
if (await checkUserQuota(user, additionalBytes, res) === false) return cleanUpReqFiles(req)
Avoid too many return
statements within this function. Open
Open
if (result.videoQuota && !isUserVideoQuotaValid(result.videoQuota + '')) return returnError('videoQuota')
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
return this.runMuxingSession({
sessionId,
videoLive,
user,
Avoid too many return
statements within this function. Open
Open
return user
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
return this.abortSession(sessionId)
Avoid too many return
statements within this function. Open
Open
return true
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
return next()