Comparison

net/resolvers/manual.lua @ 9691:e11e076f0eb8

various: Don't rely on _G.unpack existing
author Kim Alvefur <zash@zash.se>
date Sat, 08 Dec 2018 17:09:55 +0100
parent 8531:601681acea73
child 12589:39ae08180c81
comparison
equal deleted inserted replaced
9690:75ed3403065d 9691:e11e076f0eb8
1 local methods = {}; 1 local methods = {};
2 local resolver_mt = { __index = methods }; 2 local resolver_mt = { __index = methods };
3 local unpack = table.unpack or unpack; -- luacheck: ignore 113
3 4
4 -- Find the next target to connect to, and 5 -- Find the next target to connect to, and
5 -- pass it to cb() 6 -- pass it to cb()
6 function methods:next(cb) 7 function methods:next(cb)
7 if #self.targets == 0 then 8 if #self.targets == 0 then