Changeset

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
parents 6992:0622f2820d1d
children 6994:507301531cf5
files util/datamanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");