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
This commit is contained in:
deepsource-autofix[bot]
2026-01-25 16:18:42 +00:00
committed by GitHub
parent ab4e767624
commit 03b23873d1
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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