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:
parent
120aabfbce
commit
14e25ab9fe
104 changed files with 1277 additions and 10672 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue