Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 432e1e8

Browse files
authored
fix: use non-strict equivalence for options.preload (#1134)
1 parent 2d8361a commit 432e1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/add/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = configure(({ ky }) => {
2828
if (options.silent) searchParams.set('silent', options.silent)
2929
if (options.trickle != null) searchParams.set('trickle', options.trickle)
3030
if (options.wrapWithDirectory != null) searchParams.set('wrap-with-directory', options.wrapWithDirectory)
31-
if (options.preload !== null) searchParams.set('preload', options.preload)
31+
if (options.preload != null) searchParams.set('preload', options.preload)
3232

3333
const res = await ky.post('add', {
3434
timeout: options.timeout,

0 commit comments

Comments
 (0)