Comparison

plugins/mod_storage_sql.lua @ 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
parent 10222:51f145094648
child 10653:94f6fb21a764
comparison
equal deleted inserted replaced
10563:e8db377a2983 10564:3098eac31139
279 INSERT INTO "prosodyarchive" 279 INSERT INTO "prosodyarchive"
280 ("host", "user", "store", "when", "with", "key", "type", "value") 280 ("host", "user", "store", "when", "with", "key", "type", "value")
281 VALUES (?,?,?,?,?,?,?,?); 281 VALUES (?,?,?,?,?,?,?,?);
282 ]]; 282 ]];
283 if key then 283 if key then
284 local result, err = engine:delete(delete_sql, host, user or "", store, key); 284 local result = engine:delete(delete_sql, host, user or "", store, key);
285 if result then 285 if result then
286 item_count = item_count - result:affected(); 286 item_count = item_count - result:affected();
287 end 287 end
288 else 288 else
289 key = uuid.generate(); 289 key = uuid.generate();