Skip to content

Commit 0a7f1e8

Browse files
author
t31a
committed
fix: remove leftover response conversion change
1 parent c452dac commit 0a7f1e8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/com/asaas/apisdk/http/ModelConverter.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ public static String readString(Response response) {
7777

7878
public static byte[] readBytes(Response response) {
7979
try {
80-
if (response.body() == null) {
81-
throw new IllegalStateException("Response body is empty");
82-
}
8380
return response.body().bytes();
8481
} catch (Exception e) {
8582
e.printStackTrace();
@@ -95,5 +92,4 @@ public static String modelToJson(final Object model) {
9592
return null;
9693
}
9794
}
98-
9995
}

0 commit comments

Comments
 (0)