From 42578872c72ec46b256a093f74482fb6e5b8e4b9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 25 Jun 2018 12:23:44 -0700 Subject: Added explicit return statements. --- nomsu_compiler.moon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index c7105f3..fdadb67 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -354,7 +354,7 @@ with NomsuCompiler return repr(t) bits = [make_tree(bit) for bit in *t] return t.type.."("..repr(tostring t.source)..", "..table.concat(bits, ", ")..")" - LuaCode.Value tree.source, make_tree(tree[1]) + return LuaCode.Value tree.source, make_tree(tree[1]) when "Block" lua = LuaCode(tree.source) @@ -460,10 +460,10 @@ with NomsuCompiler return lua when "Number" - LuaCode.Value(tree.source, tostring(tree[1])) + return LuaCode.Value(tree.source, tostring(tree[1])) when "Var" - LuaCode.Value(tree.source, string.as_lua_id(tree[1])) + return LuaCode.Value(tree.source, string.as_lua_id(tree[1])) when "FileChunks" error("Cannot convert FileChunks to a single block of lua, since each chunk's ".. -- cgit v1.2.3