# HG changeset patch # User Anton Shestakov # Date 1467995854 -28800 # Node ID 2d38a2519d094b5cbb68c9fb4b11b92561a87340 # Parent f28fa742def3412be247f5e70e919bb8c276562e net.server_select: remove unused one-letter loop variables [luacheck] diff -r f28fa742def3 -r 2d38a2519d09 net/server_select.lua --- a/net/server_select.lua Thu Jul 07 18:48:58 2016 +0200 +++ b/net/server_select.lua Sat Jul 09 00:37:34 2016 +0800 @@ -864,7 +864,7 @@ 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 @@ 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( )