We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c452dac commit 0a7f1e8Copy full SHA for 0a7f1e8
src/main/java/com/asaas/apisdk/http/ModelConverter.java
@@ -77,9 +77,6 @@ public static String readString(Response response) {
77
78
public static byte[] readBytes(Response response) {
79
try {
80
- if (response.body() == null) {
81
- throw new IllegalStateException("Response body is empty");
82
- }
83
return response.body().bytes();
84
} catch (Exception e) {
85
e.printStackTrace();
@@ -95,5 +92,4 @@ public static String modelToJson(final Object model) {
95
92
return null;
96
93
}
97
94
98
-
99
0 commit comments