Skip to content

Commit

Permalink
missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Dec 3, 2024
1 parent 0d7f23f commit 3956f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = class Download {
await this.ready()

try {
return this.request.promise
return await this.request.promise
} catch (err) {
if (isSessionMoved(err)) return this._download()
throw err
Expand Down

0 comments on commit 3956f33

Please sign in to comment.