Skip to content

Commit 060397c

Browse files
author
Emile Joubert
committed
Cosmetic: swap condition
1 parent dca2e50 commit 060397c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/client/Apigen/src/apigen/Apigen.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,10 +1064,10 @@ public void EmitModelMethod(MethodInfo method) {
10641064
if (nowaitParameter != null) {
10651065
EmitLine(" if ("+nowaitParameter.Name+") {");
10661066
EmitLine(" ModelSend(__req,"+contentHeaderExpr+","+contentBodyExpr+");");
1067-
if (method.ReturnType != typeof(void)) {
1068-
EmitLine(" return "+nowaitExpression+";");
1069-
} else {
1067+
if (method.ReturnType == typeof(void)) {
10701068
EmitLine(" return;");
1069+
} else {
1070+
EmitLine(" return "+nowaitExpression+";");
10711071
}
10721072
EmitLine(" }");
10731073
}

0 commit comments

Comments
 (0)