Skip to content

Commit

Permalink
perf(Route): reduce code warning
Browse files Browse the repository at this point in the history
@SuppressWarnings("SameParameterValue")
  • Loading branch information
johnnymillergh committed Oct 20, 2020
1 parent f5d3264 commit a6530e1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RouterFunction<ServerResponse> videoEndPoint(VideoRouteHandler videoRouteHandler
).build();
}

@SuppressWarnings("SameParameterValue")
private static RequestPredicate param(String parameter) {
return RequestPredicates.all().and(request -> request.queryParam(parameter).isPresent());
}
Expand Down

0 comments on commit a6530e1

Please sign in to comment.