Skip to content

Commit

Permalink
Remove an Optional::map call
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritham Marupaka committed Jul 12, 2023
1 parent 8603c21 commit 4ddd732
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ private static Request trackNonRepeatableBodyConsumption(Request request) {
}
return Request.builder()
.from(request)
.body(request.body().map(ConsumptionTrackingRequestBody::new))
.body(new ConsumptionTrackingRequestBody(request.body().get()))
.build();
}

Expand Down

0 comments on commit 4ddd732

Please sign in to comment.