Skip to content

Commit ffdf3a8

Browse files
committed
example data [nfc]: Remove incorrect assertion for message move
This does not correctly catch the case when `origTopic='topic'`, and `newTopic=origStreamId=newStreamId=null`. Instead, remove it and rely on the assertions from UpdateMessageMoveData's constructor. Signed-off-by: Zixuan James Li <[email protected]>
1 parent eeb89b4 commit ffdf3a8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/example_data.dart

-2
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,6 @@ UpdateMessageEvent _updateMessageMoveEvent(
677677
}) {
678678
_checkPositive(origStreamId, 'stream ID');
679679
_checkPositive(newStreamId, 'stream ID');
680-
assert(newTopic != origTopic
681-
|| (newStreamId != null && newStreamId != origStreamId));
682680
assert(messageIds.isNotEmpty);
683681
return UpdateMessageEvent(
684682
id: 0,

0 commit comments

Comments
 (0)