Skip to content

Commit

Permalink
compose box [nfc]: Cut a small comment redundant with type
Browse files Browse the repository at this point in the history
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:
  #5510 (comment)
  • Loading branch information
gnprice committed Oct 21, 2022
1 parent 30349b8 commit bfc0fb6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/compose/ComposeBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit bfc0fb6

Please sign in to comment.