Remove unnecessary expression; Add test

First half of the expression returns a boolean already so the second
half is redundant
This commit is contained in:
Jay Thomas
2019-03-08 09:58:40 -05:00
parent 0980d07eaa
commit 9e0f56e3e9
2 changed files with 4 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ end
function lume.isarray(x)
return (type(x) == "table" and x[1] ~= nil) and true or false
return type(x) == "table" and x[1] ~= nil
end