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.

eslint: Fix @typescript-eslint/no-unnecessary-type-assertion.

Anders Kaseorg2c13d0e43d9a
diff --git a/web/src/compose_state.ts b/web/src/compose_state.ts
index 03d350b06fb..c09608a475c 100644
--- a/web/src/compose_state.ts
+++ b/web/src/compose_state.ts
@@ -83,7 +83,7 @@ function get_or_set(
// integer -> stream id of the selected stream.
// "direct" -> Direct message is selected.
export let selected_recipient_id: number | "direct" | "" = "";
-export const DIRECT_MESSAGE_ID = "direct" as const;
+export const DIRECT_MESSAGE_ID = "direct";
export function set_selected_recipient_id(recipient_id: number | "direct" | ""): void {
selected_recipient_id = recipient_id;