Skip to content

Commit d265d92

Browse files
fix lint
1 parent f664a5f commit d265d92

File tree

2 files changed

+8
-3
lines changed
  • dev-packages/browser-integration-tests/suites/public-api/setExtras/consecutive_calls
  • packages/utils/src

2 files changed

+8
-3
lines changed

dev-packages/browser-integration-tests/suites/public-api/setExtras/consecutive_calls/test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ sentryTest('should set extras from multiple consecutive calls', async ({ getLoca
1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

1212
expect(eventData.message).toBe('consecutive_calls');
13-
expect(eventData.extra).toMatchObject({ extra: [], Infinity: 2, null: '[Infinity]', obj: { foo: ['bar', 'baz', 1] } });
13+
expect(eventData.extra).toMatchObject({
14+
extra: [],
15+
Infinity: 2,
16+
null: '[Infinity]',
17+
obj: { foo: ['bar', 'baz', 1] },
18+
});
1419
});

packages/utils/src/normalize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ function visit(
8181
// Get the simple cases out of the way first
8282
if (
8383
value == null || // this matches null and undefined -> eqeq not eqeqeq
84-
(['boolean', 'string'].includes(typeof value) ||
85-
(typeof value === 'number' && Number.isFinite(value)))
84+
['boolean', 'string'].includes(typeof value) ||
85+
(typeof value === 'number' && Number.isFinite(value))
8686
) {
8787
return value as Primitive;
8888
}

0 commit comments

Comments
 (0)