Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Commit

Permalink
fix(retry): false -> {retries: 0}
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 1, 2017
1 parent 780c0f8 commit 297fbb6
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 @@ -257,7 +257,7 @@ function remoteFetch (uri, opts) {
throw err
}
})
}, opts.retry).catch(err => {
}, opts.retry === false ? { retries: 0 } : opts.retry).catch(err => {
if (err.status >= 500) {
return err
} else {
Expand Down

0 comments on commit 297fbb6

Please sign in to comment.