Permalink
Browse files

no need to check type in isArray

  • Loading branch information...
1 parent 2ecaedb commit bfbab18460d95d921d4a3492644b46bfc5ca1f3c @mikejsavage committed Sep 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 data/temp/common.lua
@@ -95,7 +95,7 @@ local function isArray( table )
local expectedIdx = 1
for key, _ in pairs( table ) do
- if type( key ) ~= "number" or key ~= expectedIdx then
+ if key ~= expectedIdx then
return false
end

0 comments on commit bfbab18

Please sign in to comment.