From 2ccee846f29ab3ce03c52a21da77f8a33279ca99 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 11 Dec 2015 20:11:48 +0100 Subject: util.datamanager: Overwrite 'data' variable instead of shadownig it [luacheck] --- util/datamanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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"); -- cgit v1.2.3