aboutsummaryrefslogtreecommitdiff
path: root/code_obj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'code_obj.lua')
-rw-r--r--code_obj.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/code_obj.lua b/code_obj.lua
index d3b9260..7fa91fc 100644
--- a/code_obj.lua
+++ b/code_obj.lua
@@ -173,11 +173,11 @@ do
__init = function(self, source, ...)
self.source = source
self.bits, self.indents, self.current_indent = { }, { }, 0
- self:append(...)
if type(self.source) == 'string' then
self.source = Source:from_string(self.source)
end
- return assert(self.source and Source:is_instance(self.source))
+ assert(self.source and Source:is_instance(self.source))
+ return self:append(...)
end,
__base = _base_0,
__name = "Code"