refactor: replace uses of ioutil with io and os (#223)

This commit is contained in:
Daniel Moran
2021-08-04 14:45:22 -04:00
committed by GitHub
parent aafdda744d
commit d615694ee9
38 changed files with 227 additions and 240 deletions

View File

@ -5,7 +5,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
@ -285,5 +284,5 @@ func (s ioStore) writeConfigs(cfgs Configs) error {
if err := (baseRW{w: &b1}).writeConfigs(cfgs); err != nil {
return err
}
return ioutil.WriteFile(s.Path, b1.Bytes(), 0600)
return os.WriteFile(s.Path, b1.Bytes(), 0600)
}