diff options
author | Kim Alvefur <zash@zash.se> | 2015-12-11 20:11:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-12-11 20:11:48 +0100 |
commit | 2ccee846f29ab3ce03c52a21da77f8a33279ca99 (patch) | |
tree | eb0c5789c8165a2190901f18a21867601fce72fc /util | |
parent | 3e9c86d509060611bdebd819a2fe61960b213e19 (diff) | |
download | prosody-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.lua | 2 |
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"); |