1
0
Fork 0
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:
Étienne Fildadut 2022-10-03 14:43:48 +09:00
parent f37fbb7594
commit f79e2f5716
3 changed files with 25 additions and 32 deletions

View file

@ -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