dev add check count for all type
Test Workflow / test (push) Successful in 4s

This commit is contained in:
vladp
2026-03-16 15:03:02 +07:00
parent 3a478f9195
commit 0f7079d118
2 changed files with 26 additions and 25 deletions
@@ -202,10 +202,10 @@ public class SearchImageService {
uniqueByUrl.putIfAbsent(normalizedUrl, image);
}
// for (YandexSearchResponse.ImageResult image : yandexImages) {
// String normalizedUrl = normalizeUrl(image.getUrl());
// uniqueByUrl.putIfAbsent(normalizedUrl, image);
// }
for (YandexSearchResponse.ImageResult image : yandexImages) {
String normalizedUrl = normalizeUrl(image.getUrl());
uniqueByUrl.putIfAbsent(normalizedUrl, image);
}
return new ArrayList<>(uniqueByUrl.values());
}