Update Playlist.js

This commit is contained in:
Aleksandr Statciuk 2021-08-01 20:11:37 +03:00
parent d9dc411cfd
commit 905b45f7fe
1 changed files with 2 additions and 6 deletions

View File

@ -32,13 +32,9 @@ module.exports = class Playlist {
save() {
const original = file.read(this.url)
const output = this.toString({ raw: true })
if (original === output) {
return false
} else {
const output = this.toString()
if (original !== output) {
file.create(this.url, output)
}
return true
}
}