Skip to content

Commit ff49b03

Browse files
committed
fix: Lint
Signed-off-by: Kaung Zin Hein <[email protected]>
1 parent 4ab14d3 commit ff49b03

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

packages/browser/src/integrations/breadcrumbs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function _getFetchBreadcrumbHandler(client: Client): (handlerData: HandlerDataFe
315315
const response = handlerData.response as Response | undefined;
316316
const data: FetchBreadcrumbData = {
317317
...handlerData.fetchData,
318-
status_code: response && response.status,
318+
status_code: response?.status,
319319
};
320320

321321
breadcrumbData.request_body_size = handlerData.fetchData.request_body_size;

packages/browser/src/integrations/graphqlClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function _updateBreadcrumbWithGraphQLData(client: Client, options: GraphQLClient
8585
const isHttpBreadcrumb = type === 'http';
8686

8787
if (isHttpBreadcrumb && (isFetch || isXhr)) {
88-
const httpUrl = data && data.url;
88+
const httpUrl = data?.url;
8989
const { endpoints } = options;
9090

9191
const isTracedGraphqlEndpoint = stringMatchesSomePattern(httpUrl, endpoints);

packages/browser/src/tracing/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
addPerformanceInstrumentationHandler,
44
addXhrInstrumentationHandler,
55
} from '@sentry-internal/browser-utils';
6-
import { XhrHint } from '@sentry-internal/replay';
6+
import type { XhrHint } from '@sentry-internal/replay';
77
import type { Client, HandlerDataXhr, SentryWrappedXMLHttpRequest, Span } from '@sentry/core';
88
import {
99
SEMANTIC_ATTRIBUTE_SENTRY_OP,

packages/core/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,12 +742,12 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
742742
/**
743743
* Emit a hook event for GraphQL client integration to enhance a span with request data.
744744
*/
745-
emit(hook: 'beforeOutgoingRequestSpan', span: Span, hint: XhrHint | FetchHint): void;
745+
public emit(hook: 'beforeOutgoingRequestSpan', span: Span, hint: XhrHint | FetchHint): void;
746746

747747
/**
748748
* Emit a hook event for GraphQL client integration to enhance a breadcrumb with request data.
749749
*/
750-
emit(hook: 'beforeOutgoingRequestBreadcrumb', breadcrumb: Breadcrumb, hint: XhrHint | FetchHint): void;
750+
public emit(hook: 'beforeOutgoingRequestBreadcrumb', breadcrumb: Breadcrumb, hint: XhrHint | FetchHint): void;
751751

752752
/**
753753
* Emit a hook event for client flush

packages/core/src/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FetchHint } from './client';
1+
import type { FetchHint } from './client';
22
import { getClient } from './currentScopes';
33
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from './semanticAttributes';
44
import { SPAN_STATUS_ERROR, setHttpStatus, startInactiveSpan } from './tracing';

0 commit comments

Comments
 (0)