Cleanup and remove more vars

This commit is contained in:
advplyr 2022-12-26 16:08:53 -06:00
parent 45c9038954
commit 775dedc338
5 changed files with 18 additions and 33 deletions

View file

@ -92,7 +92,7 @@ class PodcastEpisode {
}
get audioTrack() {
var audioTrack = new AudioTrack()
const audioTrack = new AudioTrack()
audioTrack.setData(this.libraryItemId, this.audioFile, 0)
return audioTrack
}
@ -133,7 +133,7 @@ class PodcastEpisode {
}
update(payload) {
var hasUpdates = false
let hasUpdates = false
for (const key in this.toJSON()) {
if (payload[key] != undefined && payload[key] != this[key]) {
this[key] = payload[key]