mirror of
https://github.com/gogs/gogs.git
synced 2026-02-27 16:50:58 +01:00
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:
committed by
GitHub
parent
f435c7f597
commit
ebdc1d2548
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user