Skip to content

Commit beba040

Browse files
committed
fix(opts): pass through non-null opts.retry
1 parent 03dde52 commit beba040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function regFetch (uri, opts) {
8383
Promise: opts.Promise,
8484
proxy: opts['https-proxy'] || opts.proxy,
8585
referer: opts.refer,
86-
retry: opts.retry || {
86+
retry: opts.retry != null ? opts.retry : {
8787
retries: opts['fetch-retries'],
8888
factor: opts['fetch-retry-factor'],
8989
minTimeout: opts['fetch-retry-mintimeout'],

0 commit comments

Comments
 (0)