diff options
author | 2023-10-21 19:50:29 -0700 | |
---|---|---|
committer | 2023-10-22 13:09:30 -0700 | |
commit | 14e25ab9fe09b9951b38e56af2bdff7a0737b280 (patch) | |
tree | 1e466305ccf868d0253b09895af29f811a3e3393 /internal/template/engine.go | |
parent | 120aabfbcef4ef453d70861aece3b107b603a911 (diff) | |
download | v2-14e25ab9fe09b9951b38e56af2bdff7a0737b280.tar.gz v2-14e25ab9fe09b9951b38e56af2bdff7a0737b280.tar.zst v2-14e25ab9fe09b9951b38e56af2bdff7a0737b280.zip |
Refactor HTTP Client and LocalizedError packages
Diffstat (limited to 'internal/template/engine.go')
-rw-r--r-- | internal/template/engine.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/template/engine.go b/internal/template/engine.go index 4104e019..1c834f35 100644 --- a/internal/template/engine.go +++ b/internal/template/engine.go @@ -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: |