mirror of
https://github.com/TangentFoxy/etlua.git
synced 2025-07-28 11:02:17 +00:00
remove unnecessary args
This commit is contained in:
2
elua.lua
2
elua.lua
@@ -163,7 +163,7 @@ do
|
|||||||
if not (success) then
|
if not (success) then
|
||||||
return nil, err
|
return nil, err
|
||||||
end
|
end
|
||||||
return self:load(self:chunks_to_lua(), "elua", str)
|
return self:load(self:chunks_to_lua())
|
||||||
end,
|
end,
|
||||||
parse = function(self, str)
|
parse = function(self, str)
|
||||||
self.str = str
|
self.str = str
|
||||||
|
@@ -130,7 +130,7 @@ class Parser
|
|||||||
compile: (str) =>
|
compile: (str) =>
|
||||||
success, err = @parse str
|
success, err = @parse str
|
||||||
return nil, err unless success
|
return nil, err unless success
|
||||||
@load @chunks_to_lua!, "elua", str
|
@load @chunks_to_lua!
|
||||||
|
|
||||||
parse: (@str) =>
|
parse: (@str) =>
|
||||||
assert type(@str) == "string", "expecting string for parse"
|
assert type(@str) == "string", "expecting string for parse"
|
||||||
|
Reference in New Issue
Block a user