mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
net.dns: remove unused one-letter loop variables [luacheck]
This commit is contained in:
parent
7a87176df8
commit
4da595c2cf
1 changed files with 4 additions and 4 deletions
|
@ -190,7 +190,7 @@ end
|
|||
local rrs_metatable = {}; -- - - - - - - - - - - - - - - - - - rrs_metatable
|
||||
function rrs_metatable.__tostring(rrs)
|
||||
local t = {};
|
||||
for i,rr in ipairs(rrs) do
|
||||
for _, rr in ipairs(rrs) do
|
||||
append(t, tostring(rr)..'\n');
|
||||
end
|
||||
return table.concat(t);
|
||||
|
@ -841,7 +841,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive
|
|||
rset = rset or self.socket;
|
||||
|
||||
local response;
|
||||
for i,sock in pairs(rset) do
|
||||
for _, sock in pairs(rset) do
|
||||
|
||||
if self.socketset[sock] then
|
||||
local packet = sock:receive();
|
||||
|
@ -852,7 +852,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive
|
|||
--print('received response');
|
||||
--self.print(response);
|
||||
|
||||
for j,rr in pairs(response.answer) do
|
||||
for _, rr in pairs(response.answer) do
|
||||
if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then
|
||||
self:remember(rr, response.question[1].type)
|
||||
end
|
||||
|
@ -894,7 +894,7 @@ function resolver:feed(sock, packet, force)
|
|||
--print('received response');
|
||||
--self.print(response);
|
||||
|
||||
for j,rr in pairs(response.answer) do
|
||||
for _, rr in pairs(response.answer) do
|
||||
self:remember(rr, response.question[1].type);
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue