Skip to content

Commit 48c0196

Browse files
Claude (Webhook)claude
andcommitted
fix: resolve restrict-template-expressions lint error in claude-process.ts
Wrap `subtype` with String() to convert from `unknown` to `string` before using in template literal. This was the sole lint error causing CI failure in workflow run #912. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f8c3bef commit 48c0196

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/claude-process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export class ClaudeProcess extends EventEmitter<ClaudeProcessEvents> implements
308308

309309
// Log non-streaming event types for diagnostics
310310
if (event.type !== 'stream_event') {
311-
const subtype = 'subtype' in event ? (event as Record<string, unknown>).subtype : '-'
311+
const subtype = 'subtype' in event ? String((event as Record<string, unknown>).subtype) : '-'
312312
console.log(`[event] type=${event.type} subtype=${subtype || '-'}`)
313313
}
314314
// Log all event types we DON'T handle to catch unknown protocol messages

0 commit comments

Comments
 (0)