summaryrefslogtreecommitdiffstats
path: root/acf/persistence/backends/volatile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/persistence/backends/volatile.lua')
-rw-r--r--acf/persistence/backends/volatile.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/acf/persistence/backends/volatile.lua b/acf/persistence/backends/volatile.lua
index 7322323..1b1b4cd 100644
--- a/acf/persistence/backends/volatile.lua
+++ b/acf/persistence/backends/volatile.lua
@@ -22,13 +22,13 @@ function backend:_get(path)
return res
end
-function backend:get(path, tpe)
+function backend:get(path, top)
local res = self:_get(path)
return type(res) == 'table' and util.keys(res) or res
end
-function backend:_set(path, tpe, value)
- if tpe == 'table' then value = {} end
+function backend:_set(path, value)
+ if type(value) == 'table' then value = {} end
if #path == 0 then self.data = value