From bfc0fb62e79b53a4adf207e0c27203cc047433c5 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Fri, 21 Oct 2022 14:48:01 -0700 Subject: [PATCH] compose box [nfc]: Cut a small comment redundant with type Flow already knows that these are the only three possible values for this variable: if you delete or munge one of the cases, you get a type error at the `ensureUnreachable` call. Thanks to Leslie Ngo for spotting this: https://github.com/zulip/zulip-mobile/pull/5510#discussion_r990948548 --- src/compose/ComposeBox.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compose/ComposeBox.js b/src/compose/ComposeBox.js index 2c5abfd7a94..c1884a5285a 100644 --- a/src/compose/ComposeBox.js +++ b/src/compose/ComposeBox.js @@ -401,7 +401,6 @@ export default function ComposeBox(props: Props): Node { if (validationErrors.length > 0) { const msg = validationErrors .map(error => { - // 'upload-in-progress' | 'message-empty' | 'mandatory-topic-empty' switch (error) { case 'upload-in-progress': return _('Please wait for the upload to complete.');