Changeset

8292:2fc8b83dd736

mod_storage_sql: Remove return values from purge method
author Kim Alvefur <zash@zash.se>
date Thu, 05 Oct 2017 17:22:42 +0200
parents 8291:fba1ea67f5c0
children 8293:34814a908557
files plugins/mod_storage_sql.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Thu Oct 05 12:48:36 2017 +0200
+++ b/plugins/mod_storage_sql.lua	Thu Oct 05 17:22:42 2017 +0200
@@ -415,8 +415,7 @@
 
 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