performance change

This commit is contained in:
Manuel Simon Hirsig
2017-01-16 18:23:38 +01:00
parent ddd0392bfc
commit 2ddac302e1
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -25,9 +25,9 @@ function M.read(schema, str)
elseif schema == 'number' then
return tonumber(str)
elseif type(schema) == 'table' and schema[1] == 'list' then
return read_list(schema, str)
return temp-read_list(schema, str)
elseif type(schema) == 'table' and schema[1] == 'tuple' then
return read_tuple(schema, str)
return temp-read_tuple(schema, str)
else
error('Invalid schema.', 2)
end