MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / throwIfAborted

Function throwIfAborted

apps/kimi-code/src/feedback/codebase/scanner.ts:187–193  ·  view source on GitHub ↗
(signal?: AbortSignal)

Source from the content-addressed store, hash-verified

185}
186
187function throwIfAborted(signal?: AbortSignal): void {
188 if (signal?.aborted) {
189 const error = new Error('Codebase scan aborted.');
190 error.name = 'AbortError';
191 throw error;
192 }
193}
194
195function fingerprintFiles(files: readonly FeedbackCodebaseFile[]): string {
196 const hash = createHash('sha256');

Callers 3

scanCodebaseFunction · 0.70
scanWithGitFunction · 0.70
walkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected