Fixed comment
This commit is contained in:
parent
dbbb1100b3
commit
f662d01f58
1 changed files with 2 additions and 1 deletions
|
@ -731,6 +731,8 @@ class SearchService {
|
|||
tagToItemsMap[tag]!.add(file);
|
||||
}
|
||||
}
|
||||
// If the location tag already exists for a city, do not consider
|
||||
// it for the city suggestions
|
||||
if (!hasLocationTag) {
|
||||
filesWithNoLocTag.add(file);
|
||||
}
|
||||
|
@ -769,7 +771,6 @@ class SearchService {
|
|||
..sort((a, b) => results[b]!.length.compareTo(results[a]!.length));
|
||||
for (final city in sortedByResultCount) {
|
||||
if (results[city]!.length <= 1) continue;
|
||||
// If the location tag already exists for a city, don't add it again
|
||||
tagSearchResults.add(
|
||||
GenericSearchResult(
|
||||
ResultType.locationSuggestion,
|
||||
|
|
Loading…
Add table
Reference in a new issue