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
commit07aeb61310bc5187677798f0fcf38e4241ddaae6 (patch)
tree6569b43faef1c6deba8c4159109f0e5cd13344f8 /core/storagemanager.lua
parentd96a0ef55c6de851369bd0a562caf349d4435c75 (diff)
downloadprosody-07aeb61310bc5187677798f0fcf38e4241ddaae6.tar.gz
prosody-07aeb61310bc5187677798f0fcf38e4241ddaae6.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 39eae120..cf2c65d5 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -103,7 +103,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)