Skip to content

Commit 900ceb2

Browse files
committed
make fmt
1 parent 2706e89 commit 900ceb2

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

models/git/main_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import (
88
"path/filepath"
99
"testing"
1010

11-
_ "code.gitea.io/gitea/models"
1211
"code.gitea.io/gitea/models/unittest"
12+
13+
_ "code.gitea.io/gitea/models"
1314
)
1415

1516
func TestMain(m *testing.M) {

models/issues/main_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ import (
88
"path/filepath"
99
"testing"
1010

11-
_ "code.gitea.io/gitea/models"
1211
issues_model "code.gitea.io/gitea/models/issues"
13-
_ "code.gitea.io/gitea/models/repo"
1412
"code.gitea.io/gitea/models/unittest"
15-
_ "code.gitea.io/gitea/models/user"
1613
"code.gitea.io/gitea/modules/setting"
1714

15+
_ "code.gitea.io/gitea/models"
16+
_ "code.gitea.io/gitea/models/repo"
17+
_ "code.gitea.io/gitea/models/user"
18+
1819
"github.com/stretchr/testify/assert"
1920
)
2021

routers/api/v1/activitypub/person.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ func Person(ctx *context.APIContext) {
5656
ctx.Error(http.StatusInternalServerError, "Set PreferredUsername", err)
5757
return
5858
}
59-
59+
6060
person.URL = ap.IRI(setting.AppURL + username)
6161

6262
person.Icon = ap.Image{
63-
Type: ap.ImageType,
63+
Type: ap.ImageType,
6464
MediaType: "image/png",
65-
URL: ap.IRI(user.AvatarLink()),
65+
URL: ap.IRI(user.AvatarLink()),
6666
}
6767

6868
person.Inbox = nil
@@ -91,7 +91,7 @@ func Person(ctx *context.APIContext) {
9191
ctx.Error(http.StatusInternalServerError, "Unmarshall", err)
9292
}
9393

94-
jsonmap["@context"] = []string{"https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"}
94+
jsonmap["@context"] = []string{"https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"}
9595

9696
ctx.Resp.Header().Add("Content-Type", "application/activity+json")
9797
ctx.Resp.WriteHeader(http.StatusOK)

services/gitdiff/main_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import (
88
"path/filepath"
99
"testing"
1010

11-
_ "code.gitea.io/gitea/models"
1211
"code.gitea.io/gitea/models/unittest"
12+
13+
_ "code.gitea.io/gitea/models"
1314
)
1415

1516
func TestMain(m *testing.M) {

0 commit comments

Comments
 (0)