aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitdec1bce0debb65759b94a73783b86354538c6f59 (patch)
tree42c2383b756c461f1e5041dd3c24a4442f9aac20 /plugins
parent929103b8672e1395eedd663fb172a91ce197ec33 (diff)
downloadprosody-dec1bce0debb65759b94a73783b86354538c6f59.tar.gz
prosody-dec1bce0debb65759b94a73783b86354538c6f59.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')
-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