Skip to content

Commit 5a8988c

Browse files
committed
Remove redundant parentheses in MoviesByYearResult rounding
1 parent 52e66cd commit 5a8988c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mflix/server/java-spring/src/main/java/com/mongodb/samplemflix/service/MovieServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public List<MoviesByYearResult> getMoviesByYearWithStats() {
493493
return results.getMappedResults().stream()
494494
.map(result -> {
495495
if (result.averageRating() != null) {
496-
return result.withAverageRating(Math.round((result.averageRating() * 100.0)) / 100.0);
496+
return result.withAverageRating(Math.round(result.averageRating() * 100.0) / 100.0);
497497
}
498498
return result;
499499
})

0 commit comments

Comments
 (0)