Make code prettier

This commit is contained in:
Aleksandr Statciuk
2022-12-29 23:50:36 +03:00
parent 268d150cc5
commit dd6d694491
31 changed files with 1079 additions and 1051 deletions

View File

@@ -61,20 +61,19 @@ function parseContent(content) {
return data ? JSON.parse(data) : {}
}
function parseDirector(item) {
return item.credits && item.credits.director ? item.credits.director : null
return item.credits && item.credits.director ? item.credits.director : null
}
function parseActor(item) {
return item.credits && item.credits.actor ? item.credits.actor : null
return item.credits && item.credits.actor ? item.credits.actor : null
}
function parseRating(item) {
return item.rating
? {
system: 'CNC',
value: item.rating.toUpperCase()
}
: null
}
return item.rating
? {
system: 'CNC',
value: item.rating.toUpperCase()
}
: null
}