aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-05 17:22:42 +0200
committerKim Alvefur <zash@zash.se>2017-10-05 17:22:42 +0200
commit5dcdfde22813291c305220bbd3b122e3be664ed0 (patch)
tree5a01b1cb3860551f51fa70d12b0fb507c8fae689 /plugins
parent45464dfc20edf80320291fc77c32b8b0f43236e1 (diff)
downloadprosody-5dcdfde22813291c305220bbd3b122e3be664ed0.tar.gz
prosody-5dcdfde22813291c305220bbd3b122e3be664ed0.zip
mod_storage_sql: Remove return values from purge method
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index d4a5f871..edbfd5e4 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -415,8 +415,7 @@ end
function driver:purge(username)
return engine:transaction(function()
- local stmt,err = engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username);
- return true, err;
+ engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username);
end);
end