From b87dbd64559b22ff981432411130edad527a444e Mon Sep 17 00:00:00 2001 From: Illyoung Choi Date: Thu, 19 Jan 2023 15:05:44 -0700 Subject: [PATCH] no more use of ioutil.xxx --- cmd/subcmd/copy-sftp-id.go | 3 +-- commons/commands.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/subcmd/copy-sftp-id.go b/cmd/subcmd/copy-sftp-id.go index 021dee2..42247a2 100644 --- a/cmd/subcmd/copy-sftp-id.go +++ b/cmd/subcmd/copy-sftp-id.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "os" "path" "path/filepath" @@ -218,7 +217,7 @@ func copySftpId(filesystem *irodsclient_fs.FileSystem, force bool, dryrun bool, // copy // read the identity file first - identityFileContent, err := ioutil.ReadFile(identityFile) + identityFileContent, err := os.ReadFile(identityFile) if err != nil { return err } diff --git a/commons/commands.go b/commons/commands.go index 8cb942e..2bc4a6d 100644 --- a/commons/commands.go +++ b/commons/commands.go @@ -3,7 +3,6 @@ package commons import ( "errors" "fmt" - "io/ioutil" "os" "path" "path/filepath" @@ -450,7 +449,7 @@ func loadConfigFile(configPath string) error { } // load from YAML - yjBytes, err := ioutil.ReadFile(configPath) + yjBytes, err := os.ReadFile(configPath) if err != nil { return err }