aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-24 00:49:43 +0100
committerKim Alvefur <zash@zash.se>2019-12-24 00:49:43 +0100
commit96c1406bcdea0d0e98b70fb968d5d315790cc391 (patch)
tree42c2383b756c461f1e5041dd3c24a4442f9aac20 /plugins/mod_storage_sql.lua
parent1eabf5bdb449b0312dfa272884e02cc84175775c (diff)
downloadprosody-96c1406bcdea0d0e98b70fb968d5d315790cc391.tar.gz
prosody-96c1406bcdea0d0e98b70fb968d5d315790cc391.zip
mod_storage_sql: Remove unused and not actually returned return value [luacheck]
The :delete throws an error, it does not return one like this.
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 666cee41..8172b853 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -281,7 +281,7 @@ function archive_store:append(username, key, value, when, with)
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