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