diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-04-15 22:59:21 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-04-15 22:59:21 +0300 |
commit | d9decd5a0dd0abbe7842da4400e665d96d6b8f9b (patch) | |
tree | 27a1807e9f8d1fa69b4ba0f0a2f2b5080906a825 /aconf/persistence/backends/files.lua | |
parent | 909197f81d7cc47f6bfbaed39727c59245584bbb (diff) | |
download | aconf-d9decd5a0dd0abbe7842da4400e665d96d6b8f9b.tar.bz2 aconf-d9decd5a0dd0abbe7842da4400e665d96d6b8f9b.tar.xz |
use 'unpack' function from 'table' module
Diffstat (limited to 'aconf/persistence/backends/files.lua')
-rw-r--r-- | aconf/persistence/backends/files.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aconf/persistence/backends/files.lua b/aconf/persistence/backends/files.lua index e19763d..1c78c80 100644 --- a/aconf/persistence/backends/files.lua +++ b/aconf/persistence/backends/files.lua @@ -29,7 +29,7 @@ local backend = require('aconf.object').class() function backend:init() self.cache = {} end function backend:get(path, top) - local name = pth.join('/', unpack(path)) + local name = pth.join('/', table.unpack(path)) if not self.cache[name] then local t = posix.stat(name, 'type') @@ -68,8 +68,8 @@ end function backend:set(mods) for _, mod in pairs(mods) do - local path, value = unpack(mod) - local name = pth.join('/', unpack(path)) + local path, value = table.unpack(mod) + local name = pth.join('/', table.unpack(path)) if value == nil then print('DEL', name) |