Ver código fonte

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
deepsource-autofix[bot] 2 semanas atrás
pai
commit
ebdc1d2548
2 arquivos alterados com 3 adições e 3 exclusões
  1. 2 2
      internal/cmd/web.go
  2. 1 1
      internal/route/api/v1/api.go

+ 2 - 2
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,

+ 1 - 1
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"