Skip to content

Commit 73ec1ba

Browse files
committed
fix: lint
1 parent 682d8a3 commit 73ec1ba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/nextjs/src/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { isRedirectNavigationError } from '../common/nextNavigationErrorUtils';
88
import { browserTracingIntegration } from './browserTracingIntegration';
99
import { nextjsClientStackFrameNormalizationIntegration } from './clientNormalizationIntegration';
1010
import { INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME } from './routing/appRouterRoutingInstrumentation';
11+
import { removeIsrSsgTraceMetaTags } from './routing/isrRoutingTracing';
1112
import { applyTunnelRouteOption } from './tunnelRoute';
1213

1314
export * from '@sentry/react';
1415
export * from '../common';
1516
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error';
1617
export { browserTracingIntegration } from './browserTracingIntegration';
1718
export { captureRouterTransitionStart } from './routing/appRouterRoutingInstrumentation';
18-
import { removeIsrSsgTraceMetaTags } from './routing/isrRoutingTracing';
1919

2020
let clientIsInitialized = false;
2121

packages/nextjs/src/client/routing/appRouterRoutingInstrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import {
55
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
66
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
77
} from '@sentry/core';
8+
import { GLOBAL_OBJ } from '@sentry/core';
89
import { startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, WINDOW } from '@sentry/react';
910
import { maybeParameterizeRoute } from './parameterization';
10-
import { GLOBAL_OBJ } from '@sentry/core';
1111

1212
export const INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME = 'incomplete-app-router-transaction';
1313

packages/nextjs/src/client/routing/isrRoutingTracing.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { WINDOW } from '@sentry/react';
12
import type { RouteManifest } from '../../config/manifest/types';
23
import { maybeParameterizeRoute } from './parameterization';
3-
import { WINDOW } from '@sentry/react';
44

55
const globalWithInjectedValues = WINDOW as typeof WINDOW & {
66
_sentryRouteManifest: string | RouteManifest;
@@ -46,7 +46,7 @@ export function removeIsrSsgTraceMetaTags(): void {
4646
}
4747

4848
// Helper function to remove a meta tag
49-
const removeMetaTag = (metaName: string) => {
49+
function removeMetaTag(metaName: string): void {
5050
try {
5151
const meta = WINDOW.document.querySelector(`meta[name="${metaName}"]`);
5252
if (meta) {
@@ -55,7 +55,7 @@ export function removeIsrSsgTraceMetaTags(): void {
5555
} catch {
5656
// ignore errors when removing the meta tag
5757
}
58-
};
58+
}
5959

6060
// Remove the meta tags so browserTracingIntegration won't pick them up
6161
removeMetaTag('sentry-trace');

0 commit comments

Comments
 (0)