mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
tsconfig: Enable noUncheckedIndexedAccess.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -270,7 +270,7 @@ export function slug_to_name(slug: string): string {
|
||||
*/
|
||||
const m = /^(\d+)(-.*)?$/.exec(slug);
|
||||
if (m) {
|
||||
const stream_id = Number.parseInt(m[1], 10);
|
||||
const stream_id = Number.parseInt(m[1]!, 10);
|
||||
const sub = sub_store.get(stream_id);
|
||||
if (sub) {
|
||||
return sub.name;
|
||||
|
||||
Reference in New Issue
Block a user