Skip to content

Commit 7ca795c

Browse files
committed
fix(local-variables): Clean up function assignment and fix syntax in local variables integration
1 parent d92b0a0 commit 7ca795c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/node-core/src/integrations/local-variables/local-variables-sync.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,7 @@ const _localVariablesSyncIntegration = ((
352352
const localScope = scopeChain.find(scope => scope.type === 'local');
353353

354354
// obj.className is undefined in ESM modules
355-
const fn =
356-
obj.className === 'global' || !obj.className ? functionName : `${obj.className}.${functionName}`;
355+
const fn = obj.className === 'global' || !obj.className ? functionName : `${obj.className}.${functionName}`;
357356

358357
if (localScope?.object.objectId === undefined) {
359358
add(frames => {
@@ -372,7 +371,7 @@ const _localVariablesSyncIntegration = ((
372371
}
373372

374373
next([]);
375-
}
374+
};
376375

377376
const captureAll = options.captureAllExceptions !== false;
378377

0 commit comments

Comments
 (0)