mirror of
1
Fork 0

Run make fmt again, fix err var redeclaration

Signed-off-by: Anthony Wang <ta180m@pm.me>
This commit is contained in:
Anthony Wang 2022-03-19 21:25:42 -05:00
parent ea4129e888
commit 456ed42d3e
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ import (
"net/url" "net/url"
"testing" "testing"
"code.gitea.io/gitea/modules/json"
user_model "code.gitea.io/gitea/models/user" user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/activitypub" "code.gitea.io/gitea/modules/activitypub"
"code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/setting"
"github.com/go-fed/activity/pub" "github.com/go-fed/activity/pub"
@ -45,7 +45,7 @@ func TestActivityPubPerson(t *testing.T) {
return nil return nil
}) })
ctx := context.Background() ctx := context.Background()
err := resolver.Resolve(ctx, m) err = resolver.Resolve(ctx, m)
assert.Equal(t, err, nil) assert.Equal(t, err, nil)
assert.Equal(t, "Person", person.GetTypeName()) assert.Equal(t, "Person", person.GetTypeName())
assert.Equal(t, username, person.GetActivityStreamsName().Begin().GetXMLSchemaString()) assert.Equal(t, username, person.GetActivityStreamsName().Begin().GetXMLSchemaString())