Skip to content

Commit

Permalink
chore(repo): deprecate io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
pinglin committed Mar 8, 2023
1 parent 09005f9 commit cd58ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package repo
import (
"encoding/json"
"errors"
"io/ioutil"
"os"
)

// ReadReleaseManifest reads a repo's `release-please/manifest.json` file
Expand All @@ -17,7 +17,7 @@ func ReadReleaseManifest(manifestFilepath string) (string, error) {
Version string `json:".,"` // field appears in JSON as key "."
}

content, err := ioutil.ReadFile(manifestFilepath)
content, err := os.ReadFile(manifestFilepath)
if err != nil {
return "", err
}
Expand Down

0 comments on commit cd58ebc

Please sign in to comment.