summaryrefslogtreecommitdiffstats
path: root/aconf/persistence/backends/null.lua
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-24 23:16:21 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-25 09:03:09 +0200
commit8a024c20ca7820499722a792e775b4f33fdf7dec (patch)
tree33bfc7aad4ec91c2519dd2ea448f8c96bfca67c5 /aconf/persistence/backends/null.lua
parent0490dce7900c65fd22daca163356c499fc527c42 (diff)
downloadaconf-8a024c20ca7820499722a792e775b4f33fdf7dec.tar.bz2
aconf-8a024c20ca7820499722a792e775b4f33fdf7dec.tar.xz
persistence: return zero timestamp when fetching from null backend
Diffstat (limited to 'aconf/persistence/backends/null.lua')
-rw-r--r--aconf/persistence/backends/null.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/aconf/persistence/backends/null.lua b/aconf/persistence/backends/null.lua
index 770e5e8..5210c92 100644
--- a/aconf/persistence/backends/null.lua
+++ b/aconf/persistence/backends/null.lua
@@ -4,7 +4,7 @@ See LICENSE file for license details
--]]
local backend = require('aconf.object').class()
-function backend:get(path, top) if #path == 0 then return {} end end
+function backend:get(path, top) return #path == 0 and {} or nil, 0 end
function backend:set(mods) end
return backend