Software /
code /
prosody
Diff
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 |
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