@@ -78,7 +78,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
78
78
try (ResponseBody responseBody = response .body ()) {
79
79
if (response .isSuccessful ()) {
80
80
String responseBodyString = responseBody != null ? responseBody .string () : null ;
81
- if (responseBodyString == null || responseBodyString .trim ().isEmpty ()) {
81
+ if (responseBodyString == null
82
+ || responseBodyString .trim ().isEmpty ()) {
82
83
future .complete (new BaseClientHttpResponse <>(null , response ));
83
84
return ;
84
85
}
@@ -145,7 +146,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
145
146
try (ResponseBody responseBody = response .body ()) {
146
147
if (response .isSuccessful ()) {
147
148
String responseBodyString = responseBody != null ? responseBody .string () : null ;
148
- if (responseBodyString == null || responseBodyString .trim ().isEmpty ()) {
149
+ if (responseBodyString == null
150
+ || responseBodyString .trim ().isEmpty ()) {
149
151
future .complete (new BaseClientHttpResponse <>(null , response ));
150
152
return ;
151
153
}
@@ -212,7 +214,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
212
214
try (ResponseBody responseBody = response .body ()) {
213
215
if (response .isSuccessful ()) {
214
216
String responseBodyString = responseBody != null ? responseBody .string () : null ;
215
- if (responseBodyString == null || responseBodyString .trim ().isEmpty ()) {
217
+ if (responseBodyString == null
218
+ || responseBodyString .trim ().isEmpty ()) {
216
219
future .complete (new BaseClientHttpResponse <>(null , response ));
217
220
return ;
218
221
}
@@ -271,7 +274,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
271
274
try (ResponseBody responseBody = response .body ()) {
272
275
if (response .isSuccessful ()) {
273
276
String responseBodyString = responseBody != null ? responseBody .string () : null ;
274
- if (responseBodyString == null || responseBodyString .trim ().isEmpty ()) {
277
+ if (responseBodyString == null
278
+ || responseBodyString .trim ().isEmpty ()) {
275
279
future .complete (new BaseClientHttpResponse <>(null , response ));
276
280
return ;
277
281
}
@@ -338,7 +342,8 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
338
342
try (ResponseBody responseBody = response .body ()) {
339
343
if (response .isSuccessful ()) {
340
344
String responseBodyString = responseBody != null ? responseBody .string () : null ;
341
- if (responseBodyString == null || responseBodyString .trim ().isEmpty ()) {
345
+ if (responseBodyString == null
346
+ || responseBodyString .trim ().isEmpty ()) {
342
347
future .complete (new BaseClientHttpResponse <>(null , response ));
343
348
return ;
344
349
}
0 commit comments