mirror of
https://github.com/go-gitea/gitea
synced 2025-07-16 07:18:37 +00:00
Remove deprecated packages & staticcheck fixes (#22012)
`ioutil` is deprecated and should use `io` instead
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user