diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-24 00:49:43 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-24 00:49:43 +0100 |
commit | 96c1406bcdea0d0e98b70fb968d5d315790cc391 (patch) | |
tree | 42c2383b756c461f1e5041dd3c24a4442f9aac20 | |
parent | 1eabf5bdb449b0312dfa272884e02cc84175775c (diff) | |
download | prosody-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.
-rw-r--r-- | plugins/mod_storage_sql.lua | 2 |
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 |