Skip to content

Commit

Permalink
no more use of ioutil.xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Jan 19, 2023
1 parent d2a4bae commit b87dbd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cmd/subcmd/copy-sftp-id.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
Expand Down Expand Up @@ -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
}
Expand Down
3 changes: 1 addition & 2 deletions commons/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package commons
import (
"errors"
"fmt"
"io/ioutil"
"os"
"path"
"path/filepath"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit b87dbd6

Please sign in to comment.