From ebdc1d2548a8af0ed7c7d7fb8d872729652cb8cd Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 25 Jan 2026 15:27:38 +0000 Subject: [PATCH] style: format code with Go fmt and Gofumpt This commit fixes the style issues introduced in f435c7f according to the output from Go fmt and Gofumpt. Details: https://github.com/gogs/gogs/pull/8111 --- internal/cmd/web.go | 4 ++-- internal/route/api/v1/api.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cmd/web.go b/internal/cmd/web.go index 7e41de82e..4b81fc3ca 100644 --- a/internal/cmd/web.go +++ b/internal/cmd/web.go @@ -118,7 +118,7 @@ func newFlamego() *flamego.Flame { log.Fatal("Failed to read locale file %q: %v", name, err) } } - + // Convert string arrays to Flamego's Language type languages := make([]i18n.Language, len(conf.I18n.Langs)) for i, lang := range conf.I18n.Langs { @@ -126,7 +126,7 @@ func newFlamego() *flamego.Flame { Name: lang, } } - + f.Use(i18n.I18n(i18n.Options{ Directory: filepath.Join(conf.CustomDir(), "conf", "locale"), Languages: languages, diff --git a/internal/route/api/v1/api.go b/internal/route/api/v1/api.go index ae30aa1c9..d278674e6 100644 --- a/internal/route/api/v1/api.go +++ b/internal/route/api/v1/api.go @@ -4,8 +4,8 @@ import ( "net/http" "strings" - "github.com/go-macaron/binding" "github.com/flamego/flamego" + "github.com/go-macaron/binding" api "github.com/gogs/go-gogs-client"