Sfoglia il codice sorgente

style: format code with Go fmt and Gofumpt

This commit fixes the style issues introduced in ab4e767 according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8111
deepsource-autofix[bot] 2 settimane fa
parent
commit
03b23873d1

+ 1 - 1
internal/route/api/v1/api.go

@@ -4,8 +4,8 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/flamego/flamego"
 	"github.com/flamego/binding"
+	"github.com/flamego/flamego"
 
 	api "github.com/gogs/go-gogs-client"
 

+ 1 - 1
internal/route/api/v1/user/access_tokens.go

@@ -4,8 +4,8 @@ import (
 	gocontext "context"
 	"net/http"
 
-	api "github.com/gogs/go-gogs-client"
 	"github.com/flamego/flamego"
+	api "github.com/gogs/go-gogs-client"
 
 	"gogs.io/gogs/internal/context"
 	"gogs.io/gogs/internal/database"

+ 1 - 1
internal/route/lfs/basic_test.go

@@ -8,9 +8,9 @@ import (
 	"strings"
 	"testing"
 
+	"github.com/flamego/flamego"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
-	"github.com/flamego/flamego"
 
 	"gogs.io/gogs/internal/database"
 	"gogs.io/gogs/internal/lfsutil"

+ 1 - 1
internal/route/lfs/batch.go

@@ -4,8 +4,8 @@ import (
 	"fmt"
 	"net/http"
 
-	jsoniter "github.com/json-iterator/go"
 	"github.com/flamego/flamego"
+	jsoniter "github.com/json-iterator/go"
 	log "unknwon.dev/clog/v2"
 
 	"gogs.io/gogs/internal/conf"

+ 1 - 1
internal/route/lfs/batch_test.go

@@ -8,9 +8,9 @@ import (
 	"net/http/httptest"
 	"testing"
 
+	"github.com/flamego/flamego"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
-	"github.com/flamego/flamego"
 
 	"gogs.io/gogs/internal/conf"
 	"gogs.io/gogs/internal/database"