We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca2e50 commit 060397cCopy full SHA for 060397c
projects/client/Apigen/src/apigen/Apigen.cs
@@ -1064,10 +1064,10 @@ public void EmitModelMethod(MethodInfo method) {
1064
if (nowaitParameter != null) {
1065
EmitLine(" if ("+nowaitParameter.Name+") {");
1066
EmitLine(" ModelSend(__req,"+contentHeaderExpr+","+contentBodyExpr+");");
1067
- if (method.ReturnType != typeof(void)) {
1068
- EmitLine(" return "+nowaitExpression+";");
1069
- } else {
+ if (method.ReturnType == typeof(void)) {
1070
EmitLine(" return;");
+ } else {
+ EmitLine(" return "+nowaitExpression+";");
1071
}
1072
EmitLine(" }");
1073
0 commit comments