Chocobozzz/PeerTube

View on GitHub
server/core/helpers/custom-validators/video-redundancies.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { exists } from './misc.js'

function isVideoRedundancyTarget (value: any) {
  return exists(value) &&
    (value === 'my-videos' || value === 'remote-videos')
}

// ---------------------------------------------------------------------------

export {
  isVideoRedundancyTarget
}