diff --git a/internal/pkg/githubapi/github_test.go b/internal/pkg/githubapi/github_test.go index 377a5f2a..0fa3bb0e 100644 --- a/internal/pkg/githubapi/github_test.go +++ b/internal/pkg/githubapi/github_test.go @@ -3,7 +3,6 @@ package githubapi import ( "bytes" "encoding/json" - "io/ioutil" "os" "testing" @@ -216,7 +215,7 @@ func TestGenerateArgoCdDiffComments(t *testing.T) { func readJSONFromFile(filename string, data interface{}) error { // Read the JSON from the file - jsonData, err := ioutil.ReadFile(filename) + jsonData, err := os.ReadFile(filename) if err != nil { return err }