aboutsummaryrefslogtreecommitdiffstats
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
commit50611461f2fd9ca769502ac6bcc1e0baaef0e789 (patch)
tree5a01b1cb3860551f51fa70d12b0fb507c8fae689
parent8956f32a9c6fff30b6f604dba0a1ea0330712be1 (diff)
downloadprosody-50611461f2fd9ca769502ac6bcc1e0baaef0e789.tar.gz
prosody-50611461f2fd9ca769502ac6bcc1e0baaef0e789.zip
mod_storage_sql: Remove return values from purge method
-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