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
This commit is contained in:
deepsource-autofix[bot]
2026-01-25 15:27:38 +00:00
committed by GitHub
parent f435c7f597
commit ebdc1d2548
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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"