mirror of
https://github.com/iptv-org/database.git
synced 2025-05-09 19:20:01 -04:00
Fix linter issues
This commit is contained in:
parent
a28122809a
commit
dac7d19f40
13 changed files with 15 additions and 16 deletions
|
@ -12,7 +12,7 @@ export class BlocklistRecordValidator extends Validator {
|
|||
validate(blocklistRecord: BlocklistRecord): Collection {
|
||||
const { channelsKeyById }: DataLoaderData = this.data
|
||||
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = blocklistRecord
|
||||
.getSchema()
|
||||
|
|
|
@ -9,7 +9,7 @@ export class CategoryValidator extends Validator {
|
|||
}
|
||||
|
||||
validate(category: Category): Collection {
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = category.getSchema().validate(category.data(), { abortEarly: false })
|
||||
if (joiResults.error) {
|
||||
|
|
|
@ -18,7 +18,7 @@ export class ChannelValidator extends Validator {
|
|||
categoriesKeyById
|
||||
}: DataLoaderData = this.data
|
||||
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = channel.getSchema().validate(channel.data(), { abortEarly: false })
|
||||
if (joiResults.error) {
|
||||
|
|
|
@ -12,7 +12,7 @@ export class CountryValidator extends Validator {
|
|||
validate(country: Country): Collection {
|
||||
const { languagesKeyByCode }: DataLoaderData = this.data
|
||||
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = country.getSchema().validate(country.data(), { abortEarly: false })
|
||||
if (joiResults.error) {
|
||||
|
|
|
@ -18,7 +18,7 @@ export class FeedValidator extends Validator {
|
|||
timezonesKeyById
|
||||
}: DataLoaderData = this.data
|
||||
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = feed.getSchema().validate(feed.data(), { abortEarly: false })
|
||||
if (joiResults.error) {
|
||||
|
|
|
@ -9,7 +9,7 @@ export class LanguageValidator extends Validator {
|
|||
}
|
||||
|
||||
validate(language: Language): Collection {
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = language.getSchema().validate(language.data(), { abortEarly: false })
|
||||
if (joiResults.error) {
|
||||
|
|
|
@ -12,7 +12,7 @@ export class RegionValidator extends Validator {
|
|||
validate(region: Region): Collection {
|
||||
const { countriesKeyByCode }: DataLoaderData = this.data
|
||||
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = region.getSchema().validate(region.data(), { abortEarly: false })
|
||||
if (joiResults.error) {
|
||||
|
|
|
@ -12,7 +12,7 @@ export class SubdivisionValidator extends Validator {
|
|||
validate(subdivision: Subdivision): Collection {
|
||||
const { countriesKeyByCode }: DataLoaderData = this.data
|
||||
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = subdivision.getSchema().validate(subdivision.data(), { abortEarly: false })
|
||||
if (joiResults.error) {
|
||||
|
|
|
@ -12,7 +12,7 @@ export class TimezoneValidator extends Validator {
|
|||
validate(timezone: Timezone): Collection {
|
||||
const { countriesKeyByCode }: DataLoaderData = this.data
|
||||
|
||||
let errors = new Collection()
|
||||
const errors = new Collection()
|
||||
|
||||
const joiResults = timezone.getSchema().validate(timezone.data(), { abortEarly: false })
|
||||
if (joiResults.error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue