Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
OleFarwig committed Nov 16, 2024
1 parent 80ef0d9 commit 0689b66
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import pro.beerpong.api.repository.SeasonRepository;

import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;

@Service
Expand Down Expand Up @@ -48,7 +47,7 @@ public List<PlayerDto> copyPlayersFromOldSeason(String oldSeasonId, String newSe
newPlayer.setSeason(newSeason);
return playerRepository.save(newPlayer);
})
.collect(Collectors.toList());
.toList();

return newSeasonPlayers.stream()
.map(playerMapper::playerToPlayerDto)
Expand Down

0 comments on commit 0689b66

Please sign in to comment.