diff options
author | Chongyi Zheng <harryzheng25@gmail.com> | 2022-12-02 17:06:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 17:06:23 -0500 |
commit | 8698458f48eafeab21014db544aa7160368856e1 (patch) | |
tree | cc324e8f8856412ce7e715dacacb6301a2857004 /tests/integration/api_packages_nuget_test.go | |
parent | 21bcb929260d1e41fd84c650aeea552f540d0981 (diff) | |
download | gitea-8698458f48eafeab21014db544aa7160368856e1.tar.gz gitea-8698458f48eafeab21014db544aa7160368856e1.zip |
Remove deprecated packages & staticcheck fixes (#22012)
`ioutil` is deprecated and should use `io` instead
Diffstat (limited to 'tests/integration/api_packages_nuget_test.go')
-rw-r--r-- | tests/integration/api_packages_nuget_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/integration/api_packages_nuget_test.go b/tests/integration/api_packages_nuget_test.go index 72329b6691..cc4ff180d0 100644 --- a/tests/integration/api_packages_nuget_test.go +++ b/tests/integration/api_packages_nuget_test.go @@ -10,7 +10,6 @@ import ( "encoding/xml" "fmt" "io" - "io/ioutil" "net/http" "net/http/httptest" "testing" @@ -105,7 +104,7 @@ func TestPackageNuGet(t *testing.T) { return &buf } - content, _ := ioutil.ReadAll(createPackage(packageName, packageVersion)) + content, _ := io.ReadAll(createPackage(packageName, packageVersion)) url := fmt.Sprintf("/api/packages/%s/nuget", user.Name) |