diff --git a/src/main/java/org/highmed/numportal/service/ProjectService.java b/src/main/java/org/highmed/numportal/service/ProjectService.java index 80660ed6..6d7c064a 100644 --- a/src/main/java/org/highmed/numportal/service/ProjectService.java +++ b/src/main/java/org/highmed/numportal/service/ProjectService.java @@ -1250,10 +1250,7 @@ public byte[] getInfoDocBytes(Long id, String userId, Locale locale) { Project project = projectRepository .findById(id) - .orElseThrow( - () -> { - throw new BadRequestException(ProjectService.class, PROJECT_NOT_FOUND); - }); + .orElseThrow(() -> new BadRequestException(ProjectService.class, PROJECT_NOT_FOUND)); ProjectDto projectDto = projectMapper.convertToDto(project); try { return projectDocCreator.getDocBytesOfProject(projectDto, locale);