From 27df19f09d12d08cefd7966e31791c4cfcb898cb Mon Sep 17 00:00:00 2001 From: guangwu Date: Sun, 1 Oct 2023 17:51:53 +0800 Subject: [PATCH] chore: remove refs to deprecated io/ioutil (#1748) Signed-off-by: guoguangwu --- config/config_v1.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config_v1.go b/config/config_v1.go index c7c2f3f6..f3a1f4af 100644 --- a/config/config_v1.go +++ b/config/config_v1.go @@ -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) }