From b83af955c3fd1926be43968629d81ceb21edcc13 Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Tue, 5 Nov 2019 12:20:07 -0800 Subject: [PATCH] remove wrapper over db.DeleteAccount --- account.go | 4 ---- app.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/account.go b/account.go index 5e5f03e..2a66ecf 100644 --- a/account.go +++ b/account.go @@ -1068,7 +1068,3 @@ func getTempInfo(app *App, key string, r *http.Request, w http.ResponseWriter) s // Return value return s } - -func deleteAccount(app *App, userID int64) error { - return app.db.DeleteAccount(userID) -} diff --git a/app.go b/app.go index e793902..92d5995 100644 --- a/app.go +++ b/app.go @@ -718,7 +718,7 @@ func DoDeleteAccount(apper Apper, username string) error { } log.Info("Deleting...") - err = deleteAccount(apper.App(), userID) + err = apper.App().db.DeleteAccount(userID) if err != nil { log.Error("%s", err) os.Exit(1)