From 5336f33770ecb39a2ea96f4d83ee8137009203f1 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 28 Jun 2021 15:04:22 -0700 Subject: [PATCH] fixup! fix (getAgent): add nullish check for uri --- src/agents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents.ts b/src/agents.ts index 9e29659..638b300 100644 --- a/src/agents.ts +++ b/src/agents.ts @@ -29,7 +29,7 @@ export type HttpAnyAgent = HTTPAgent | HTTPSAgent; * Returns a custom request Agent if one is found, otherwise returns undefined * which will result in the global http(s) Agent being used. * @private - * @param {string} uri The request uri + * @param {string|undefined} uri The request uri * @param {Options} reqOpts The request options * @returns {HttpAnyAgent|undefined} */