Skip to content

Commit 651bb98

Browse files
committed
fix(voice-pipeline): resolve 2 lint errors unblocking CI
- TranscriptDedupe: drop unnecessary escape on `[` inside character class (no-useless-escape). Character behavior unchanged. - DeepgramStreamingSTT: drop no-op try/catch that just rethrew (no-useless-catch). Behavior unchanged — a naked throw from the async function propagates identically. Lint went from 2 errors to 0 errors (warnings unchanged at 206). Pre-existing errors, not introduced by the forge-telemetry commits, but CI has been red since their authoring so Release kept passing while CI didn't. Release + CI now both green. Voice-pipeline targeted suite: 242 tests pass.
1 parent 5e0f2eb commit 651bb98

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

src/voice-pipeline/TranscriptDedupe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface DedupeResult {
2828
against?: { provider: string; text: string };
2929
}
3030

31-
const PUNCT_RE = /[.,!?;:"'()\[\]{}]/g;
31+
const PUNCT_RE = /[.,!?;:"'()[\]{}]/g;
3232
const WS_RE = /\s+/g;
3333

3434
function normalize(text: string): string {

src/voice-pipeline/providers/DeepgramStreamingSTT.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,11 @@ export type VoiceHealthProbe = (
5353

5454
async function defaultDeepgramProbe(apiKey: string) {
5555
const start = Date.now();
56-
try {
57-
const res = await fetch('https://api.deepgram.com/v1/projects', {
58-
headers: { Authorization: `Token ${apiKey}` },
59-
signal: AbortSignal.timeout(1000),
60-
});
61-
return { ok: res.ok, status: res.status, latencyMs: Date.now() - start };
62-
} catch (err) {
63-
throw err;
64-
}
56+
const res = await fetch('https://api.deepgram.com/v1/projects', {
57+
headers: { Authorization: `Token ${apiKey}` },
58+
signal: AbortSignal.timeout(1000),
59+
});
60+
return { ok: res.ok, status: res.status, latencyMs: Date.now() - start };
6561
}
6662

6763
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)