stream_data: Fix return type of stream_info.get.

We can definitely be looking up stream ids that don't map to
anything. All callers already assume it can be undefined.
This commit is contained in:
evykassirer
2024-08-08 10:45:33 -07:00
committed by Tim Abbott
parent 9dab566d10
commit 7203244015

View File

@@ -82,14 +82,14 @@ class BinaryDict<T> {
yield* this.falses.values();
}
get(k: number): T {
get(k: number): T | undefined {
const res = this.trues.get(k);
if (res !== undefined) {
return res;
}
return this.falses.get(k)!;
return this.falses.get(k);
}
set(k: number, v: T): void {