diff options
author | Anton Shestakov <av6@dwimlabs.net> | 2016-07-09 00:37:34 +0800 |
---|---|---|
committer | Anton Shestakov <av6@dwimlabs.net> | 2016-07-09 00:37:34 +0800 |
commit | d77dfdad8ecd084267d9ff6d91afac82575ae8fb (patch) | |
tree | 5938d77c6700c0340570557ca8badfba4be6953c /net/server_select.lua | |
parent | a18479bd7009a6b522ee8227d56dbb10165986dc (diff) | |
download | prosody-d77dfdad8ecd084267d9ff6d91afac82575ae8fb.tar.gz prosody-d77dfdad8ecd084267d9ff6d91afac82575ae8fb.zip |
net.server_select: remove unused one-letter loop variables [luacheck]
Diffstat (limited to 'net/server_select.lua')
-rw-r--r-- | net/server_select.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index 3503c30d..85730e73 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -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( ) |