aboutsummaryrefslogtreecommitdiff
path: root/internal/ui/oauth2_unlink.go
diff options
context:
space:
mode:
authorGravatar jvoisin <julien.voisin@dustri.org> 2024-02-27 17:19:38 +0100
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-02-28 19:24:41 -0800
commit5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c (patch)
tree992245da4fdf2ef81448dc6fb4c126d98a478304 /internal/ui/oauth2_unlink.go
parentb4ed17fbac15d71fa379ca463d63c7e36d833fd2 (diff)
downloadv2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.tar.gz
v2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.tar.zst
v2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.zip
Make use of printer.Print when possible
Diffstat (limited to 'internal/ui/oauth2_unlink.go')
-rw-r--r--internal/ui/oauth2_unlink.go4
1 files changed, 2 insertions, 2 deletions
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"))
}