From d9ae724b9fb9d25ca2cc8d7d127fb43556a73170 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 22 Oct 2019 18:37:04 +0100 Subject: [PATCH] fix: use non-strict equivalence for options.preload --- src/add/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add/index.js b/src/add/index.js index ea85a6a0b..8b8ba7690 100644 --- a/src/add/index.js +++ b/src/add/index.js @@ -28,7 +28,7 @@ module.exports = configure(({ ky }) => { if (options.silent) searchParams.set('silent', options.silent) if (options.trickle != null) searchParams.set('trickle', options.trickle) if (options.wrapWithDirectory != null) searchParams.set('wrap-with-directory', options.wrapWithDirectory) - if (options.preload !== null) searchParams.set('preload', options.preload) + if (options.preload != null) searchParams.set('preload', options.preload) const res = await ky.post('add', { timeout: options.timeout,