mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-06-25 01:21:15 +12:00
resolve only has one argument
This commit is contained in:
parent
5027cdff63
commit
40038e3098
|
@ -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)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue