chore: remove refs to deprecated io/ioutil (#1748)

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guangwu
2023-10-01 17:51:53 +08:00
committed by GitHub
parent c1854a3a7b
commit 27df19f09d

View File

@@ -4,7 +4,6 @@ import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"strings"
@@ -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)
}