blueslip_stacktrace: Fix TypeScript noUncheckedIndexedAccess errors.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-30 10:07:58 -07:00
parent 284beed889
commit 9ad8ca4223
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ async function get_context(location: StackFrame): Promise<NumberedLine[] | undef
if (fileName === undefined || lineNumber === undefined) {
return undefined;
}
let sourceContent: string;
let sourceContent: string | undefined;
try {
sourceContent = await sourceCache[fileName];
} catch {