aboutsummaryrefslogtreecommitdiffstats
path: root/core/storagemanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-08-08 12:38:35 +0200
committerKim Alvefur <zash@zash.se>2014-08-08 12:38:35 +0200
commitedd380b6cd178d2b0eb11b44c659874420393e4c (patch)
treeb158516a37a0ec5d00ecdc757c5e32a6ab5cff47 /core/storagemanager.lua
parent06903bc73909fd1557c326f2cc90404aed4f7dcc (diff)
downloadprosody-edd380b6cd178d2b0eb11b44c659874420393e4c.tar.gz
prosody-edd380b6cd178d2b0eb11b44c659874420393e4c.zip
storagemanager: Fix map store shim if store is empty
Diffstat (limited to 'core/storagemanager.lua')
-rw-r--r--core/storagemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index d8a7b2e2..b2ad29d0 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -84,7 +84,7 @@ local map_shim_mt = {
__index = {
get = function(self, username, key)
local ret, err = self.keyval_store:get(username);
- if ret == nil and err then return nil, err end
+ if ret == nil then return nil, err end
return ret[key];
end;
set = function(self, username, key, data)