FILE.load失败时不再返回空表,直接返回空值
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user