Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into post-state-valida…
Browse files Browse the repository at this point in the history
…tor-balances
  • Loading branch information
courtneyeh committed Nov 17, 2023
2 parents 116abff + 93177af commit 9eac758
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ public <T> T getRequestBody() {
}

@Override
@SuppressWarnings({"unchecked", "TypeParameterUnusedInFormals"})
public <T> Optional<T> getOptionalRequestBody() throws JsonProcessingException {
return Optional.of((T) requestBody);
return Optional.ofNullable(getRequestBody());
}

@Override
Expand Down

0 comments on commit 9eac758

Please sign in to comment.