Skip to content

Commit

Permalink
fix(node): Check for potentially undefined httpModule (#4037)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
  • Loading branch information
deammer and kamilogorek committed Oct 11, 2021
1 parent cff6f9a commit 272043d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/integrations/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function normalizeRequestArgs(
requestOptions.protocol =
(requestOptions.agent as any)?.protocol ||
(requestOptions._defaultAgent as any)?.protocol ||
(httpModule.globalAgent as any)?.protocol;
(httpModule?.globalAgent as any)?.protocol;
/* eslint-enable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */
}

Expand Down

0 comments on commit 272043d

Please sign in to comment.