From 5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 27 Feb 2024 17:19:38 +0100 Subject: Make use of printer.Print when possible --- internal/ui/oauth2_unlink.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/ui/oauth2_unlink.go') diff --git a/internal/ui/oauth2_unlink.go b/internal/ui/oauth2_unlink.go index 8a698a3e..83b1fcfa 100644 --- a/internal/ui/oauth2_unlink.go +++ b/internal/ui/oauth2_unlink.go @@ -47,7 +47,7 @@ func (h *handler) oauth2Unlink(w http.ResponseWriter, r *http.Request) { } if !hasPassword { - sess.NewFlashErrorMessage(printer.Printf("error.unlink_account_without_password")) + sess.NewFlashErrorMessage(printer.Print("error.unlink_account_without_password")) html.Redirect(w, r, route.Path(h.router, "settings")) return } @@ -58,6 +58,6 @@ func (h *handler) oauth2Unlink(w http.ResponseWriter, r *http.Request) { return } - sess.NewFlashMessage(printer.Printf("alert.account_unlinked")) + sess.NewFlashMessage(printer.Print("alert.account_unlinked")) html.Redirect(w, r, route.Path(h.router, "settings")) } -- cgit v1.2.3