FILE.load失败时不再返回空表,直接返回空值

This commit is contained in:
MrZ626
2020-12-15 11:38:11 +08:00
parent 6c012aa0ad
commit 2758a2eb03

View File

@@ -12,7 +12,7 @@ function FILE.load(name)
return s()
else
LOG.print(name.." "..text.loadError,COLOR.red)
return{}
return
end
else
local res=json.decode(s)
@@ -20,7 +20,7 @@ function FILE.load(name)
return res
else
LOG.print(name.." "..text.loadError,COLOR.red)
return{}
return
end
end
end