File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
modules/swagger-codegen/src/main/resources/android-java
samples/client/petstore/android-java/src/main/java/io/swagger/client Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -365,8 +365,10 @@ public class ApiInvoker {
365
365
366
366
int code = response.getStatusLine().getStatusCode();
367
367
String responseString = null;
368
- if(code == 204)
368
+ if(code == 204) {
369
369
responseString = " " ;
370
+ return responseString;
371
+ }
370
372
else if(code >= 200 && code < 300) {
371
373
if (response.getEntity() != null) {
372
374
HttpEntity resEntity = response.getEntity();
Original file line number Diff line number Diff line change @@ -365,8 +365,10 @@ else if ("PATCH".equals(method)) {
365
365
366
366
int code = response .getStatusLine ().getStatusCode ();
367
367
String responseString = null ;
368
- if (code == 204 )
368
+ if (code == 204 ) {
369
369
responseString = "" ;
370
+ return responseString ;
371
+ }
370
372
else if (code >= 200 && code < 300 ) {
371
373
if (response .getEntity () != null ) {
372
374
HttpEntity resEntity = response .getEntity ();
You can’t perform that action at this time.
0 commit comments