Skip to content

Commit e807a57

Browse files
committed
refactor(CollectionController): simplify a check for emptiness.
1 parent add39cc commit e807a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ru/mystamps/web/feature/collection/CollectionController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public String showInfoBySlug(
7070
collectionService.findSeriesInCollection(collectionId, lang);
7171
model.addAttribute("seriesOfCollection", seriesOfCollection);
7272

73-
if (seriesOfCollection.iterator().hasNext()) {
73+
if (!seriesOfCollection.isEmpty()) {
7474
long categoryCounter = categoryService.countCategoriesOf(collectionId);
7575
long countryCounter = countryService.countCountriesOf(collectionId);
7676
long seriesCounter = collectionService.countSeriesOf(collectionId);

0 commit comments

Comments
 (0)