Skip to content

Commit

Permalink
Remove redundant non-null check
Browse files Browse the repository at this point in the history
  • Loading branch information
valfirst committed Nov 21, 2024
1 parent a86dc04 commit 606edc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private <T> T requestToAddonsManager(String addOnPath,
}

try {
return objectMapper.readerFor(responseClass).readValue(Objects.requireNonNull(response.body()));
return objectMapper.readerFor(responseClass).readValue(response.body());
} catch (IOException e) {
throw new RuntimeException("Failed to parse response from manager API", e);
}
Expand Down

0 comments on commit 606edc1

Please sign in to comment.