From 5ce38822c3dd22933e2ded5ae90b207badff52b6 Mon Sep 17 00:00:00 2001 From: joshua bauer Date: Mon, 14 Sep 2020 21:56:32 -0700 Subject: [PATCH] Remove empty server responses. --- .../main/java/io/sinistral/proteus/server/ServerResponse.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/proteus-core/src/main/java/io/sinistral/proteus/server/ServerResponse.java b/proteus-core/src/main/java/io/sinistral/proteus/server/ServerResponse.java index dd21481..5076290 100644 --- a/proteus-core/src/main/java/io/sinistral/proteus/server/ServerResponse.java +++ b/proteus-core/src/main/java/io/sinistral/proteus/server/ServerResponse.java @@ -709,10 +709,6 @@ public static ServerResponse response(String body) public static ServerResponse response(T entity) { - if(entity == null) - { - return new ServerResponse().notFound(); - } return new ServerResponse().entity(entity); }