Skip to content

Commit 95fb966

Browse files
committed
fix linting
1 parent c36bd75 commit 95fb966

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/integrations/requestdata.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function extractNormalizedRequestData(
115115
}
116116

117117
if (include.cookies) {
118-
const cookies = normalizedRequest.cookies || (headers && headers.cookie ? parseCookie(headers.cookie) : undefined);
118+
const cookies = normalizedRequest.cookies || (headers?.cookie ? parseCookie(headers.cookie) : undefined);
119119
requestData.cookies = cookies || {};
120120
}
121121

packages/core/src/utils/request.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function getAbsoluteUrl({
106106
protocol,
107107
host,
108108
}: { url?: string; protocol: string; host?: string }): string | undefined {
109-
if (url && url.startsWith('http')) {
109+
if (url?.startsWith('http')) {
110110
return url;
111111
}
112112

0 commit comments

Comments
 (0)