chore(telemetry): drop dead void name/void props from track()

Leftover unused-param suppressors from the prior commit. Both `name`
and `props` are referenced later in the function (burst cap, validate,
capture), so no suppression is needed at the early-return.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
brennanb2025
2026-05-05 21:43:35 -07:00
co-authored by Orca
parent cdb4871836
commit c4ce516ce9
-2
View File
@@ -255,8 +255,6 @@ function waitForCaptureEnqueue(client: PostHog, event: EventName, uuid: string):
// `ORCA_POSTHOG_WRITE_KEY`.
export function track<N extends EventName>(name: N, props: EventProps<N>): void {
if (!testTransportEnabled && (!IS_OFFICIAL_BUILD || !TELEMETRY_ENABLED)) {
void name
void props
return
}