remove ioutil usage in all project

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-04-03 15:53:19 +08:00
parent 1aa87538a7
commit 303ef9cd80
14 changed files with 28 additions and 38 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
package state
import (
"io/ioutil"
"os"
"path/filepath"
"reflect"
@@ -20,7 +19,7 @@ import (
func createFromYaml(content []byte, file string, env string, logger *zap.SugaredLogger) (*HelmState, error) {
c := &StateCreator{
logger: logger,
readFile: ioutil.ReadFile,
readFile: os.ReadFile,
abs: filepath.Abs,
DeleteFile: os.Remove,