aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-07-09 00:37:34 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-07-09 00:37:34 +0800
commit7a87176df82a4744559b4a13071a1d2813eb5a86 (patch)
tree5938d77c6700c0340570557ca8badfba4be6953c
parentddccdcd00d24514e5a9bafad9d5789f674bd8770 (diff)
downloadprosody-7a87176df82a4744559b4a13071a1d2813eb5a86.tar.gz
prosody-7a87176df82a4744559b4a13071a1d2813eb5a86.zip
net.server_select: remove unused one-letter loop variables [luacheck]
-rw-r--r--net/server_select.lua4
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( )