1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Refactor HTTP Client and LocalizedError packages

This commit is contained in:
Frédéric Guillot 2023-10-21 19:50:29 -07:00
parent 120aabfbce
commit 14e25ab9fe
104 changed files with 1277 additions and 10672 deletions

View file

@ -11,7 +11,6 @@ import (
"strings"
"time"
"miniflux.app/v2/internal/errors"
"miniflux.app/v2/internal/locale"
"github.com/gorilla/mux"
@ -119,10 +118,6 @@ func (e *Engine) Render(name string, data map[string]interface{}) []byte {
switch k := key.(type) {
case string:
return printer.Printf(k, args...)
case errors.LocalizedError:
return k.Localize(printer)
case *errors.LocalizedError:
return k.Localize(printer)
case error:
return k.Error()
default: