summaryrefslogtreecommitdiffstats
path: root/aconf/persistence/backends/json.lua
diff options
context:
space:
mode:
Diffstat (limited to 'aconf/persistence/backends/json.lua')
-rw-r--r--aconf/persistence/backends/json.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/aconf/persistence/backends/json.lua b/aconf/persistence/backends/json.lua
index 607315a..bdf2715 100644
--- a/aconf/persistence/backends/json.lua
+++ b/aconf/persistence/backends/json.lua
@@ -26,7 +26,7 @@ function backend:split_path(path)
local res
while #fpath > 0 do
- local fp = pth.join('/', unpack(fpath))
+ local fp = pth.join('/', table.unpack(fpath))
if self.cache[fp] then return fp, jpath end
table.insert(jpath, 1, fpath[#fpath])
table.remove(fpath)
@@ -62,7 +62,7 @@ function backend:set(mods)
local dirty = {}
for _, mod in ipairs(mods) do
- local path, value = unpack(mod)
+ local path, value = table.unpack(mod)
local fpath, jpath = self:split_path(path)
self.cache[fpath]:_set(jpath, value)
dirty[fpath] = true