From 40038e3098430208f4aae3d946e0f355cc821f10 Mon Sep 17 00:00:00 2001 From: daniel-j Date: Wed, 17 Aug 2016 10:59:09 +0200 Subject: [PATCH] resolve only has one argument --- src/FimFic2Epub.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FimFic2Epub.js b/src/FimFic2Epub.js index 3426a51..a532fad 100644 --- a/src/FimFic2Epub.js +++ b/src/FimFic2Epub.js @@ -411,7 +411,7 @@ module.exports = class FimFic2Epub { getFile () { return new Promise((resolve, reject) => { if (this.cachedFile) { - resolve(this.cachedFile, this.filename) + resolve(this.cachedFile) return } if (!this.hasDownloaded) { @@ -426,7 +426,7 @@ module.exports = class FimFic2Epub { compressionOptions: {level: 9} }).then((file) => { this.cachedFile = file - resolve(file, this.filename) + resolve(file) }) }) }