Skip to content

Commit 4fdc120

Browse files
committed
autocomplete [nfc]: Mention why the inequality check is needed
This helps imply why we don't have the check when displayName is null Signed-off-by: Zixuan James Li <[email protected]>
1 parent 0488200 commit 4fdc120

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/model/autocomplete.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,7 @@ class TopicAutocompleteQuery extends AutocompleteQuery {
947947
return store.realmEmptyTopicDisplayName.toLowerCase()
948948
.contains(raw.toLowerCase());
949949
}
950+
// Skip this option if it matches the query exactly.
950951
return topic.displayName != raw
951952
// ignore: unnecessary_non_null_assertion // null topic names soon to be enabled
952953
&& topic.displayName!.toLowerCase().contains(raw.toLowerCase());

0 commit comments

Comments
 (0)