aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-03-19 21:25:42 -0500
committerAnthony Wang2022-03-20 10:52:49 -0500
commit456ed42d3e2069b50e5e99ca2280dc0d2236c150 (patch)
tree771b88c6f13879d060e99affadaa1887c96d2923
parentea4129e88825e05a1c1cb803190f0351af7c6f60 (diff)
Run make fmt again, fix err var redeclaration
Signed-off-by: Anthony Wang <ta180m@pm.me>
-rw-r--r--integrations/api_activitypub_person_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/api_activitypub_person_test.go b/integrations/api_activitypub_person_test.go
index 6d15ede0e..a56852a7a 100644
--- a/integrations/api_activitypub_person_test.go
+++ b/integrations/api_activitypub_person_test.go
@@ -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())