From 8419183ef06293e39cc36be0fea3c3fa0deb6a17 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Apr 2026 07:25:05 +0000 Subject: [PATCH] refactor: remove unnecessary `as any` cast in pkgsDiff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `{} as any` initial value for `reduce(mergeRight, ...)` was unnecessary — TypeScript can infer the initial value type from context since the outer expression is already cast to `Rx.Observable`. --- cli/default-reporter/src/reporterForClient/pkgsDiff.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/default-reporter/src/reporterForClient/pkgsDiff.ts b/cli/default-reporter/src/reporterForClient/pkgsDiff.ts index 77e3370364..30b59c3933 100644 --- a/cli/default-reporter/src/reporterForClient/pkgsDiff.ts +++ b/cli/default-reporter/src/reporterForClient/pkgsDiff.ts @@ -115,7 +115,7 @@ export function getPkgsDiff ( ) .pipe( take(2), - reduce(mergeRight, {} as any) // eslint-disable-line @typescript-eslint/no-explicit-any + reduce(mergeRight, {}) ) as Rx.Observable return Rx.combineLatest(