resolve only has one argument

This commit is contained in:
daniel-j 2016-08-17 10:59:09 +02:00
parent 5027cdff63
commit 40038e3098

View file

@ -411,7 +411,7 @@ module.exports = class FimFic2Epub {
getFile () { getFile () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (this.cachedFile) { if (this.cachedFile) {
resolve(this.cachedFile, this.filename) resolve(this.cachedFile)
return return
} }
if (!this.hasDownloaded) { if (!this.hasDownloaded) {
@ -426,7 +426,7 @@ module.exports = class FimFic2Epub {
compressionOptions: {level: 9} compressionOptions: {level: 9}
}).then((file) => { }).then((file) => {
this.cachedFile = file this.cachedFile = file
resolve(file, this.filename) resolve(file)
}) })
}) })
} }