mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Code style cleaning
This commit is contained in:
parent
f37fbb7594
commit
f79e2f5716
3 changed files with 25 additions and 32 deletions
|
|
@ -508,8 +508,8 @@ local function eval(state, exp)
|
|||
})
|
||||
if not s then return nil, e end
|
||||
-- for classes: build resulting object
|
||||
if fn.subtype == "class" then
|
||||
local object = {
|
||||
if fn.subtype == "class" and ret and ret.type == "nil" then
|
||||
ret = {
|
||||
type = "annotated",
|
||||
value = {
|
||||
{
|
||||
|
|
@ -525,9 +525,6 @@ local function eval(state, exp)
|
|||
}
|
||||
}
|
||||
}
|
||||
if ret and ret.type == "nil" then
|
||||
ret = object
|
||||
end
|
||||
end
|
||||
-- pop scope
|
||||
if fn.scoped then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue