Software /
code /
prosody
Diff
util/datamanager.lua @ 6993:dc0c6b8dc638
util.datamanager: Overwrite 'data' variable instead of shadownig it [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 11 Dec 2015 20:11:48 +0100 |
parent | 6992:0622f2820d1d |
child | 6994:507301531cf5 |
line wrap: on
line diff
--- a/util/datamanager.lua Fri Dec 11 20:07:22 2015 +0100 +++ b/util/datamanager.lua Fri Dec 11 20:11:48 2015 +0100 @@ -234,7 +234,7 @@ 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");