Skip to content

Commit

Permalink
Fix returning NoContent. (#9830)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgajda authored Jun 26, 2021
1 parent 0f578d4 commit 1cd1001
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ public CodegenOperation fromOperation(String resourcePath, String httpMethod, Op
// Add the HTTP method and return type
String returnType = op.returnType;
if (returnType == null || returnType.equals("null")) {
returnType = "()";
returnType = "NoContent";
}
if (returnType.indexOf(" ") >= 0) {
returnType = "(" + returnType + ")";
Expand Down

0 comments on commit 1cd1001

Please sign in to comment.