Showing 1,292 of 3,313 total issues
Avoid too many return
statements within this function. Open
Open
return AccountAutomaticTagPolicyModel.hasPolicyOnTags({
accountId: video.VideoChannel.accountId,
policy: AutomaticTagPolicy.REVIEW_COMMENT,
tags: ownerAccountTags,
transaction
Avoid too many return
statements within this function. Open
Open
if (o.isLive !== true && !o.archiveFiles?.videoFile) return undefined
Avoid too many return
statements within this function. Open
Open
if (diffSeconds >= 15 * anHour) return '1 hour'
Avoid too many return
statements within this function. Open
Open
if (o.passwords.some(p => !isPasswordValid(p))) return undefined
Avoid too many return
statements within this function. Open
Open
return undefined
Avoid too many return
statements within this function. Open
Open
return undefined
Avoid too many return
statements within this function. Open
Open
if (!isArray(o.passwords)) return undefined
Avoid too many return
statements within this function. Open
Open
if (diffSeconds >= 180 * aMinute) return '10 minutes'
Avoid too many return
statements within this function. Open
Open
if (o.live.saveReplay && !isVideoReplayPrivacyValid(o.live.replaySettings.privacy)) return undefined
Avoid too many return
statements within this function. Open
Open
return pick(o, [ 'type', 'displayName', 'privacy', 'elements', 'channel', 'description', 'archiveFiles' ])
Avoid too many return
statements within this function. Open
Open
if (!isBooleanValid(o.live.permanentLive)) return undefined
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
if (diffSeconds >= 8 * aDay) return '12 hours'
Avoid too many return
statements within this function. Open
Open
if (diffSeconds >= 4 * aDay) return '6 hours'
Avoid too many return
statements within this function. Open
Open
return retryTransactionWrapper(processCreateCacheFile, activity, activityObject, byActor)
Avoid too many return
statements within this function. Open
Open
if (ownerAccountTags.length === 0) return false
Avoid too many return
statements within this function. Open
Open
else if (!isUUIDValid(o.live.streamKey)) return undefined
Avoid too many return
statements within this function. Open
Open
if (v === 'waiting-for-parent-job') return RunnerJobState.WAITING_FOR_PARENT_JOB
Avoid too many return
statements within this function. Open
Open
return videoPlaylist
Avoid too many return
statements within this function. Open
Open
return undefined