Skip to content

Commit

Permalink
fix(Request#then): match native Promise#then (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
papaia authored Feb 1, 2021
1 parent 245ab15 commit 7d135e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Request {
}

then(resolver, rejector) {
return this._request().then(resolver).catch(rejector);
return this._request().then(resolver, rejector);
}

catch(rejector) {
Expand Down

0 comments on commit 7d135e9

Please sign in to comment.