aboutsummaryrefslogtreecommitdiffstats
path: root/modules/activitypub
diff options
context:
space:
mode:
authorChongyi Zheng <harryzheng25@gmail.com>2022-12-02 17:06:23 -0500
committerGitHub <noreply@github.com>2022-12-02 17:06:23 -0500
commit8698458f48eafeab21014db544aa7160368856e1 (patch)
treecc324e8f8856412ce7e715dacacb6301a2857004 /modules/activitypub
parent21bcb929260d1e41fd84c650aeea552f540d0981 (diff)
downloadgitea-8698458f48eafeab21014db544aa7160368856e1.tar.gz
gitea-8698458f48eafeab21014db544aa7160368856e1.zip
Remove deprecated packages & staticcheck fixes (#22012)
`ioutil` is deprecated and should use `io` instead
Diffstat (limited to 'modules/activitypub')
-rw-r--r--modules/activitypub/client_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/activitypub/client_test.go b/modules/activitypub/client_test.go
index b5f978c4dd..0ab512c5ba 100644
--- a/modules/activitypub/client_test.go
+++ b/modules/activitypub/client_test.go
@@ -35,7 +35,7 @@ func TestActivityPubSignedPost(t *testing.T) {
body, err := io.ReadAll(r.Body)
assert.NoError(t, err)
assert.Equal(t, expected, string(body))
- fmt.Fprintf(w, expected)
+ fmt.Fprint(w, expected)
}))
defer srv.Close()