mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
Make use of printer.Print when possible
This commit is contained in:
parent
b4ed17fbac
commit
5a7d6f8997
8 changed files with 22 additions and 22 deletions
|
@ -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"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue