mirror of https://github.com/zulip/zulip.git
blueslip_stacktrace: Fix TypeScript noUncheckedIndexedAccess errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
284beed889
commit
9ad8ca4223
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue