mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-08-26 06:28:03 +02:00
Run make fmt again, fix err var redeclaration
Signed-off-by: Anthony Wang <ta180m@pm.me>
This commit is contained in:
parent
ea4129e888
commit
456ed42d3e
1 changed files with 2 additions and 2 deletions
|
@ -12,9 +12,9 @@ import (
|
|||
"net/url"
|
||||
"testing"
|
||||
|
||||
"code.gitea.io/gitea/modules/json"
|
||||
user_model "code.gitea.io/gitea/models/user"
|
||||
"code.gitea.io/gitea/modules/activitypub"
|
||||
"code.gitea.io/gitea/modules/json"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
||||
"github.com/go-fed/activity/pub"
|
||||
|
@ -45,7 +45,7 @@ func TestActivityPubPerson(t *testing.T) {
|
|||
return nil
|
||||
})
|
||||
ctx := context.Background()
|
||||
err := resolver.Resolve(ctx, m)
|
||||
err = resolver.Resolve(ctx, m)
|
||||
assert.Equal(t, err, nil)
|
||||
assert.Equal(t, "Person", person.GetTypeName())
|
||||
assert.Equal(t, username, person.GetActivityStreamsName().Begin().GetXMLSchemaString())
|
||||
|
|
Loading…
Reference in a new issue