Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil (future-architect#1748)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Oct 1, 2023
1 parent c1854a3 commit 27df19f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/config_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"strings"

Expand Down Expand Up @@ -89,7 +88,7 @@ func convertToLatestConfig(pathToToml string) error {
}
Conf.Servers = convertedServerConfigList

raw, err := ioutil.ReadFile(pathToSaasJSON)
raw, err := os.ReadFile(pathToSaasJSON)
if err != nil {
return xerrors.Errorf("Failed to read saas-credential.json. err: %w", err)
}
Expand Down

0 comments on commit 27df19f

Please sign in to comment.