소스 검색

Fixed comment

Neeraj Gupta 1 년 전
부모
커밋
f662d01f58
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      lib/services/search_service.dart

+ 2 - 1
lib/services/search_service.dart

@@ -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,