Skip to content

Commit

Permalink
Remove empty server responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Sep 15, 2020
1 parent 487d57c commit 5ce3882
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,6 @@ public static ServerResponse<ByteBuffer> response(String body)

public static <T> ServerResponse<T> response(T entity)
{
if(entity == null)
{
return new ServerResponse<T>().notFound();
}
return new ServerResponse<T>().entity(entity);
}

Expand Down

0 comments on commit 5ce3882

Please sign in to comment.