Skip to content

Commit b2d2f44

Browse files
gnpricesm-sayedi
authored andcommitted
recent_senders test [nfc]: Cut redundant sort
The function we're passing this to doesn't notice the order anyway -- it just puts these into sets.
1 parent 0a1430a commit b2d2f44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/model/recent_senders_test.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ void main() {
7171
setupModel(oldMessages);
7272
model.handleMessages(newMessages);
7373
final expectedMessages = [...oldMessages, ...newMessages]
74-
..removeWhere((m) => m is! StreamMessage)
75-
..sort((m1, m2) => m1.id.compareTo(m2.id));
74+
..removeWhere((m) => m is! StreamMessage);
7675
checkMatchesMessages(model, expectedMessages);
7776
}
7877

0 commit comments

Comments
 (0)