Software /
code /
prosody
Comparison
net/dns.lua @ 7527:936b78e9f399
net.dns: remove unused variable unpack [luacheck]
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 28 Jul 2016 15:39:48 +0800 |
parent | 7500:4c519444d4a2 |
child | 8154:6300394bb713 |
comparison
equal
deleted
inserted
replaced
7526:71ef4a4104d3 | 7527:936b78e9f399 |
---|---|
20 local is_windows = (_ and windows) or os.getenv("WINDIR"); | 20 local is_windows = (_ and windows) or os.getenv("WINDIR"); |
21 | 21 |
22 local coroutine, io, math, string, table = | 22 local coroutine, io, math, string, table = |
23 coroutine, io, math, string, table; | 23 coroutine, io, math, string, table; |
24 | 24 |
25 local ipairs, next, pairs, print, setmetatable, tostring, assert, error, select, type, unpack= | 25 local ipairs, next, pairs, print, setmetatable, tostring, assert, error, select, type = |
26 ipairs, next, pairs, print, setmetatable, tostring, assert, error, select, type, table.unpack or unpack; | 26 ipairs, next, pairs, print, setmetatable, tostring, assert, error, select, type; |
27 | 27 |
28 local ztact = { -- public domain 20080404 lua@ztact.com | 28 local ztact = { -- public domain 20080404 lua@ztact.com |
29 get = function(parent, ...) | 29 get = function(parent, ...) |
30 local len = select('#', ...); | 30 local len = select('#', ...); |
31 for i=1,len do | 31 for i=1,len do |