Showing 3,313 of 3,313 total issues
Avoid too many return
statements within this function. Open
Open
if (req.body.channelId && !await doesVideoChannelOfAccountExist(req.body.channelId, user, 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
return next()
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.BAD_REQUEST_400,
message: 'Cannot delete Web Video files since this video does not have HLS playlist'
})
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
if (!await doesVideoExist(req.params.videoId, res)) return cleanUpReqFiles(req)
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