Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_data: Cleanup in 'mark_archived' function.

whilstsomebody0c4c78a75954
diff --git a/web/src/stream_data.ts b/web/src/stream_data.ts
index 94e56901999..a11f29fd589 100644
--- a/web/src/stream_data.ts
+++ b/web/src/stream_data.ts
@@ -303,7 +303,7 @@ export function slug_to_stream_id(slug: string): number | undefined {
export function mark_archived(stream_id: number): void {
const sub = get_sub_by_id(stream_id);
- if (sub === undefined || !stream_info.get(stream_id)) {
+ if (sub === undefined) {
blueslip.warn("Failed to archive stream " + stream_id.toString());
return;
}