You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -429,12 +427,10 @@ export class LuaTranspiler {
429
427
430
428
this.popIndent();
431
429
432
-
result+=this.indent+`end,\n`;
430
+
result+=this.indent+`end\n`;
433
431
});
434
-
this.popIndent();
435
-
result+=this.indent+"}\n";
436
-
result+=this.indent+`if ${jumpTableName}[${expression}] then ${jumpTableName}[${expression}](${jumpTableName})\n`;
437
-
result+=this.indent+`elseif ${jumpTableName}["____default${this.genVarCounter}"] then ${jumpTableName}["____default${this.genVarCounter}"](${jumpTableName}) end\n`;
432
+
result+=this.indent+`if ${jumpTableName}[${expression}] then ${jumpTableName}[${expression}]()\n`;
433
+
result+=this.indent+`elseif ${jumpTableName}["____default${this.genVarCounter}"] then ${jumpTableName}["____default${this.genVarCounter}"]() end\n`;
0 commit comments