Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhave committed May 14, 2024
1 parent 345f312 commit 2a0879f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public EntityModel<Release> release(@PathVariable String id, @PathVariable Strin
List<ProjectDocumentation> documentations = this.contentfulService.getProjectDocumentations(id);
List<Release> releases = documentations.stream().map(this::asRelease).toList();
Release release = releases.stream()
.filter((candididate) -> candididate.getVersion().equals(version))
.filter((candidate) -> candidate.getVersion().equals(version))
.findFirst()
.orElseThrow(() -> new ResourceNotFoundException(
"Version '%s' cannot be found for project '%s'".formatted(version, id)));
Expand Down

0 comments on commit 2a0879f

Please sign in to comment.