Changeset

10564:3098eac31139

mod_storage_sql: Remove unused and not actually returned return value [luacheck] The :delete throws an error, it does not return one like this.
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:49:43 +0100
parents 10563:e8db377a2983
children 10565:421b2f8369fd
files plugins/mod_storage_sql.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Tue Dec 24 00:39:45 2019 +0100
+++ b/plugins/mod_storage_sql.lua	Tue Dec 24 00:49:43 2019 +0100
@@ -281,7 +281,7 @@
 		VALUES (?,?,?,?,?,?,?,?);
 		]];
 		if key then
-			local result, err = engine:delete(delete_sql, host, user or "", store, key);
+			local result = engine:delete(delete_sql, host, user or "", store, key);
 			if result then
 				item_count = item_count - result:affected();
 			end