From 905b45f7fec0f85380df92c560c34c431f88f605 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 1 Aug 2021 20:11:37 +0300 Subject: [PATCH] Update Playlist.js --- scripts/helpers/Playlist.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/helpers/Playlist.js b/scripts/helpers/Playlist.js index 4e8668edd1..5b26b4ac27 100644 --- a/scripts/helpers/Playlist.js +++ b/scripts/helpers/Playlist.js @@ -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 } }