From 7980a434b548f6ae927a77b358ab5987f8e95165 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 07:54:29 +0000 Subject: [PATCH] fix(search-events): Drop the non-null assertion that fails lint on main getsentry/toolkit#2146 ran CI before getsentry/toolkit#2125 enabled typescript/no-unnecessary-type-assertion, so `requests[0]!` in its test landed on main and now fails `pnpm lint`. Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com> --- packages/mcp-core/src/tools/catalog/search-events.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mcp-core/src/tools/catalog/search-events.test.ts b/packages/mcp-core/src/tools/catalog/search-events.test.ts index e95de54f6e..924869a9b2 100644 --- a/packages/mcp-core/src/tools/catalog/search-events.test.ts +++ b/packages/mcp-core/src/tools/catalog/search-events.test.ts @@ -3555,7 +3555,7 @@ describe("search_events", () => { ); expect(requests).toHaveLength(1); - return requests[0]!; + return requests[0]; }; it("searches the agent's absolute window inside the period", async () => {