Skip to content

Commit f3903bd

Browse files
gnpricechrisbobbe
authored andcommitted
flow: Cut workaround for facebook/flow#8833
This issue was fixed in Flow v0.173.0, after I reported it: facebook/flow#8833 https://github.com/facebook/flow/blob/main/Changelog.md#01730 Now that we've upgraded past that (in #5700), we get to drop the workaround.
1 parent 2de7773 commit f3903bd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/message/messagesReducer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,7 @@ export default (
269269
return oldMessage;
270270
}
271271

272-
// FlowIssue: https://github.com/facebook/flow/issues/8833
273-
// The cast `: 'stream'` is silly but harmless, and works
274-
// around a Flow issue which causes an error.
275-
if (oldMessage.type !== ('stream': 'stream')) {
272+
if (oldMessage.type !== 'stream') {
276273
logging.warn('messagesReducer: got update_message with stream/topic move on PM');
277274
return oldMessage;
278275
}

0 commit comments

Comments
 (0)