refactor(HelloController): simplify collection conversion

This commit is contained in:
Jan K9f 2024-10-02 10:19:56 +02:00
parent b586d4e312
commit 5e7e8cd354
Signed by: jank
GPG key ID: B267751B8AE29EFE

View file

@ -94,6 +94,6 @@ public class HelloController {
.findByMessage(message) .findByMessage(message)
.stream() .stream()
.map(e -> this.helloMapper.mapToGetDto(e)) .map(e -> this.helloMapper.mapToGetDto(e))
.collect(Collectors.toList()); .toList();
} }
} }