fixup(coder) Don't bother making if-else-if pretty
Reducing the number of branches in the compiler and simplifying code
coverage is more important
@@ -422,14 +422,7 @@ generate_stat = function(stat)
local cond_cstats, cond_cvalue = generate_exp(then_.condition)
local block_cstats = generate_stat(then_.block)
local else_ = (cstats and "else "..cstats or "")
- if cond_cstats == "" then
- cstats = util.render(
- [[if (${COND}) ${BLOCK} ${ELSE}]], {
- COND = cond_cvalue,
- BLOCK = block_cstats,
- ELSE = else_
- })
- else
+
cstats = util.render(
[[{
${STATS}
@@ -441,7 +434,6 @@ generate_stat = function(stat)
ELSE = else_
})
end
- end
return cstats
