Showing 1,292 of 3,313 total issues
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.CONFLICT_409,
message: `Channel with name ${req.body.channelName} already exists.`
})
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.FORBIDDEN_403,
message: 'Cannot create this live because the max instance lives limit is reached.',
type: ServerErrorCode.MAX_INSTANCE_LIVES_LIMIT_REACHED
})
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 next()
Avoid too many return
statements within this function. Open
Open
if (result.allowed !== 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 res.fail({
message: 'User video quota is exceeded with this import',
status: HttpStatusCode.PAYLOAD_TOO_LARGE_413,
type: ServerErrorCode.QUOTA_REACHED
})
Avoid too many return
statements within this function. Open
Open
if (!checkUserCanManageVideo(user, video, UserRight.UPDATE_ANY_VIDEO, res)) return
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.FORBIDDEN_403,
message: 'Only admins can force transcription'
})
Avoid too many return
statements within this function. Open
Open
if (!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 fail()
Avoid too many return
statements within this function. Open
Open
if (!checkUserCanManageVideo(user, res.locals.videoAll, UserRight.UPDATE_ANY_VIDEO, res)) return cleanUpReqFiles(req)
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.FORBIDDEN_403,
message: 'Cannot get this private video playlist.'
})
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'
})