net.server_select: remove unused one-letter loop variables [luacheck]
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 8 Jul 2016 16:37:34 +0000 (00:37 +0800)
committerAnton Shestakov <av6@dwimlabs.net>
Fri, 8 Jul 2016 16:37:34 +0000 (00:37 +0800)
net/server_select.lua

index 3503c30d0079bd2f50daa04e89867b091efeefb2..85730e73c4d2d6c216d9ec062ab97926b6cf56a2 100644 (file)
@@ -864,7 +864,7 @@ loop = function(once) -- this is the main loop of the program
        local next_timer_time = math_huge;
        repeat
                local read, write, err = socket_select( _readlist, _sendlist, math_min(_selecttimeout, next_timer_time) )
-               for i, socket in ipairs( write ) do -- send data waiting in writequeues
+               for _, socket in ipairs( write ) do -- send data waiting in writequeues
                        local handler = _socketlist[ socket ]
                        if handler then
                                handler.sendbuffer( )
@@ -873,7 +873,7 @@ loop = function(once) -- this is the main loop of the program
                                out_put "server.lua: found no handler and closed socket (writelist)"    -- this should not happen
                        end
                end
-               for i, socket in ipairs( read ) do -- receive data
+               for _, socket in ipairs( read ) do -- receive data
                        local handler = _socketlist[ socket ]
                        if handler then
                                handler.readbuffer( )