From d9decd5a0dd0abbe7842da4400e665d96d6b8f9b Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Tue, 15 Apr 2014 22:59:21 +0300 Subject: use 'unpack' function from 'table' module --- aconf/transaction/base.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aconf/transaction/base.lua') diff --git a/aconf/transaction/base.lua b/aconf/transaction/base.lua index 9df0bc2..2bdc963 100644 --- a/aconf/transaction/base.lua +++ b/aconf/transaction/base.lua @@ -47,7 +47,7 @@ function M.TransactionBackend:set_multiple(mods) local function tostr(s) return s ~= nil and tostring(s) or nil end for _, mod in ipairs(mods) do - local path, value = unpack(mod) + local path, value = table.unpack(mod) if type(value) == 'table' or type( self:get(path) @@ -128,7 +128,7 @@ function M.Transaction:_set_multiple(mods) end for _, mod in ipairs(mods) do - local path, value = unpack(mod) + local path, value = table.unpack(mod) local ppath = pth.parent(path) local parent = self:get(ppath) -- cgit v1.2.3