Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint: simplify optional chaining in client and transport files
  • Loading branch information
logaretm committed Mar 10, 2026
commit d3c7bad776946cd6de578f65c0528d82402e8917
3 changes: 1 addition & 2 deletions packages/core/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1321,8 +1321,7 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
throw _makeDoNotSendEventError('An event processor returned `null`, will not send event.');
}

// oxlint-disable-next-line typescript/prefer-optional-chain
const isInternalException = hint.data && (hint.data as { __sentry__: boolean }).__sentry__ === true;
const isInternalException = (hint.data as { __sentry__?: boolean })?.__sentry__ === true;
if (isInternalException) {
return prepared;
}
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/integrations/mcp-server/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export function wrapTransportSend(transport: MCPTransport, options: ResolvedMcpO
}

if (isJsonRpcResponse(message)) {
// oxlint-disable-next-line typescript/prefer-optional-chain
if (message.id !== null && message.id !== undefined) {
if (message.error) {
captureJsonRpcErrorResponse(message.error);
Expand Down