Skip to content

Commit 82d2305

Browse files
chore: autoformatted httpClient instrumentation
1 parent 52ae449 commit 82d2305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/tracing/instrumentation/protocols/httpClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,10 @@ function constructFromUrlOpts(options, self, forceHttps) {
336336

337337
try {
338338
const agent = options.agent || self.agent;
339-
const isHttps = forceHttps || options.protocol === 'https:' || (agent?.protocol === 'https:');
339+
const isHttps = forceHttps || options.protocol === 'https:' || agent?.protocol === 'https:';
340340

341341
// Use protocol-aware default port, 443 for HTTPS, 80 for HTTP
342-
const port = options.port || options.defaultPort || (agent?.defaultPort) || (isHttps ? 443 : 80);
342+
const port = options.port || options.defaultPort || agent?.defaultPort || (isHttps ? 443 : 80);
343343

344344
const protocol =
345345
(port === 443 && 'https:') ||

0 commit comments

Comments
 (0)