mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-29 22:29:31 +02:00
Cleanup and remove more vars
This commit is contained in:
parent
45c9038954
commit
775dedc338
5 changed files with 18 additions and 33 deletions
|
@ -50,7 +50,7 @@ class Series {
|
|||
update(series) {
|
||||
if (!series) return false
|
||||
const keysToUpdate = ['name', 'description']
|
||||
var hasUpdated = false
|
||||
let hasUpdated = false
|
||||
for (const key of keysToUpdate) {
|
||||
if (series[key] !== undefined && series[key] !== this[key]) {
|
||||
this[key] = series[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue