This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user