Showing 3,313 of 3,313 total issues
Avoid too many return
statements within this function. Open
Open
return res.fail({ message: 'Should have a magnetUri or a targetUrl or a torrent file.' })
Avoid too many return
statements within this function. Open
Open
if (!await isVideoPasswordDeletable(res)) return
Avoid too many return
statements within this function. Open
Open
return
Avoid too many return
statements within this function. Open
Open
if (!await doesVideoChannelOfAccountExist(body.channelId, user, res)) return cleanUpReqFiles(req)
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.BAD_REQUEST_400,
type: ServerErrorCode.VIDEO_ALREADY_HAS_CAPTIONS,
message: 'This video already has captions'
})
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.BAD_REQUEST_400,
message: 'Cannot delete last HLS playlist file since this video does not have Web Video files'
})
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.BAD_REQUEST_400,
message: 'Cannot delete audio file of HLS playlist with splitted audio/video. Delete all the videos first'
})
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.NOT_FOUND_404,
message: 'Video not found'
})
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
if (!checkInvalidLiveConfig(req.body, res)) return
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.FORBIDDEN_403,
message: 'Custom latency mode is not allowed by this instance'
})
Avoid too many return
statements within this function. Open
Open
return res.fail({
status: HttpStatusCode.NOT_FOUND_404,
message: 'Video playlist not found'
})
Avoid too many return
statements within this function. Open
Open
return next()
Avoid too many return
statements within this function. Open
Open
if (!checkUserCanManageVideo(user, res.locals.videoAll, UserRight.GET_ANY_LIVE, res)) return
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 (canUserAccessVideo(user, videoWithRights, UserRight.SEE_ALL_VIDEOS)) return true
Avoid too many return
statements within this function. Open
Open
return next()