Skip to content

Commit

Permalink
[grid] do not create unused HttpResponse instances
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Apr 3, 2024
1 parent cca70e3 commit 68ad984
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ public HttpClient createClient(ClientConfig config) {
return new HttpClient() {
@Override
public HttpResponse execute(HttpRequest request) throws UncheckedIOException {
HttpResponse response = new HttpResponse();

if (!handler.test(request)) {
HttpResponse response = new HttpResponse();
response.setStatus(404);
response.setContent(
asJson(
Expand Down

0 comments on commit 68ad984

Please sign in to comment.