Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils/fetch: support options.agent being a boolean.
node-fetch/node-fetch#1502 changed the type of options.agent to allow a boolean, which caused issues as we tried to call it. Flip the condition around and check for function instead, so that this compiles. Signed-off-by: Mark Yen <mark.yen@suse.com>
- Loading branch information