Skip to content

Commit

Permalink
Replace depricated package
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded-B committed Sep 5, 2024
1 parent d8149eb commit ef24e05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/pkg/githubapi/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package githubapi
import (
"bytes"
"encoding/json"
"io/ioutil"
"os"
"testing"

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit ef24e05

Please sign in to comment.