Skip to content

Commit

Permalink
fix(opts): pass through non-null opts.retry
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Aug 16, 2018
1 parent 03dde52 commit beba040
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 @@ -83,7 +83,7 @@ function regFetch (uri, opts) {
Promise: opts.Promise,
proxy: opts['https-proxy'] || opts.proxy,
referer: opts.refer,
retry: opts.retry || {
retry: opts.retry != null ? opts.retry : {
retries: opts['fetch-retries'],
factor: opts['fetch-retry-factor'],
minTimeout: opts['fetch-retry-mintimeout'],
Expand Down

0 comments on commit beba040

Please sign in to comment.