Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lib: Remove useless conditional in process __pairs metamethod
  • Loading branch information
creationix committed Jul 10, 2012
1 parent 8b06c1f commit dedcde8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/luvit/luvit.lua
Expand Up @@ -58,9 +58,7 @@ setmetatable(process, {
end
if not key then return nil end
local lastkey = key
if table[key] then
key = next(table, key)
end
key = next(table, key)
return lastkey, table[lastkey]
end
end
Expand Down

0 comments on commit dedcde8

Please sign in to comment.