Skip to content

Commit 5099236

Browse files
committed
Linting
1 parent 5dbead6 commit 5099236

File tree

1 file changed

+5
-8
lines changed
  • packages/node/src/integrations/local-variables

1 file changed

+5
-8
lines changed

packages/node/src/integrations/local-variables/worker.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ async function handlePaused(
104104
return;
105105
}
106106

107-
const originalErrorStackFrames: StackFrame[] = stackParser(
108-
data.description,
109-
).filter((frame) => frame.function !== 'new Promise');
107+
const originalErrorStackFrames: StackFrame[] = stackParser(data.description).filter(
108+
frame => frame.function !== 'new Promise',
109+
);
110110

111111
// Debugger frames being longer than the originalErrorStackFrames means they definitely dont match
112112
// Debugger callFrames don't include anything beyond an async boundary, so they should be SHORTER or equal to the full error stack
@@ -119,8 +119,7 @@ async function handlePaused(
119119

120120
for (let i = 0; i < callFrames.length; i++) {
121121
// sentry frames are in reverse order
122-
const originalErrorStackFramesIndex =
123-
originalErrorStackFrames.length - 1 - i;
122+
const originalErrorStackFramesIndex = originalErrorStackFrames.length - 1 - i;
124123

125124
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
126125
const { scopeChain, functionName, this: obj } = callFrames[i]!;
@@ -130,9 +129,7 @@ async function handlePaused(
130129
// obj.className is undefined in ESM modules
131130
const fn = obj.className === 'global' || !obj.className ? functionName : `${obj.className}.${functionName}`;
132131

133-
if (
134-
!functionNamesMatch(fn, originalErrorStackFrames[originalErrorStackFramesIndex]?.function)
135-
) {
132+
if (!functionNamesMatch(fn, originalErrorStackFrames[originalErrorStackFramesIndex]?.function)) {
136133
// If at any point we encounter a function name that doesn't match the original error stack, we stop
137134
// this means we are in a re-throw and we don't want to override the error's detected vars from the original throw
138135
return;

0 commit comments

Comments
 (0)