mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
awful.util.join: Stop using arg
Implementing vararg functions via arg is deprecated in lua. This kind of thing should instead be done via "...". Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
dc6a2c6b0d
commit
bb52505bb8
1 changed files with 3 additions and 3 deletions
|
@ -237,9 +237,9 @@ end
|
|||
-- @return A new table containing all keys from the arguments.
|
||||
function table.join(...)
|
||||
local ret = {}
|
||||
for i = 1, arg.n do
|
||||
if arg[i] then
|
||||
for k, v in pairs(arg[i]) do
|
||||
for i, t in ipairs({...}) do
|
||||
if t then
|
||||
for k, v in pairs(t) do
|
||||
if type(k) == "number" then
|
||||
rtable.insert(ret, v)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue