projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7760be5
)
storagemanager: Fix map store shim if store is empty
author
Kim Alvefur
<zash@zash.se>
Fri, 8 Aug 2014 10:38:35 +0000
(12:38 +0200)
committer
Kim Alvefur
<zash@zash.se>
Fri, 8 Aug 2014 10:38:35 +0000
(12:38 +0200)
core/storagemanager.lua
patch
|
blob
|
history
diff --git
a/core/storagemanager.lua
b/core/storagemanager.lua
index 39eae120eb4fd4c86f7b88b38917243e16470d6e..cf2c65d5e65946a867d61e46f5d8df21a2fa8177 100644
(file)
--- 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)