mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-30 00:56:13 +13:00
resolve only has one argument
This commit is contained in:
parent
5027cdff63
commit
40038e3098
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue