aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-12-11 20:11:48 +0100
committerKim Alvefur <zash@zash.se>2015-12-11 20:11:48 +0100
commit2ccee846f29ab3ce03c52a21da77f8a33279ca99 (patch)
treeeb0c5789c8165a2190901f18a21867601fce72fc /util
parent3e9c86d509060611bdebd819a2fe61960b213e19 (diff)
downloadprosody-2ccee846f29ab3ce03c52a21da77f8a33279ca99.tar.gz
prosody-2ccee846f29ab3ce03c52a21da77f8a33279ca99.zip
util.datamanager: Overwrite 'data' variable instead of shadownig it [luacheck]
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 13aed78f..1993d6a3 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -234,7 +234,7 @@ local function list_append(username, host, datastore, data)
if callback(username, host, datastore) == false then return true; end
-- save the datastore
- local data = "item(" .. serialize(data) .. ");\n";
+ data = "item(" .. serialize(data) .. ");\n";
local ok, msg = append(username, host, datastore, "list", data);
if not ok then
log("error", "Unable to write to %s storage ('%s') for user: %s@%s", datastore, msg, username or "nil", host or "nil");