narrow_state: Disable coverage requirement for unlikely case.

I'm not actually sure if this is possible; it's been copy/pasted from
the channel/topic code path, but even with that one, it seems like the
topic being `undefined` is impossible (that's not how operators work),
and the channel being undefined might be something that should fail in
`Filter` initialization, not here.
This commit is contained in:
Tim Abbott 2024-07-13 07:28:12 -07:00
parent 70be9e8c51
commit b747bd4487
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ export function _possible_unread_message_ids(
return [];
}
if (sub === undefined || topic_name === undefined) {
/* istanbul ignore next */
return [];
}
return unread.get_msg_ids_for_topic(sub.stream_id, topic_name);