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
+2 -3
View File
@@ -2,7 +2,6 @@ package state
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"sort"
@@ -273,8 +272,8 @@ type chartDependencyManager struct {
func NewChartDependencyManager(name string, logger *zap.SugaredLogger) *chartDependencyManager {
return &chartDependencyManager{
Name: name,
readFile: ioutil.ReadFile,
writeFile: ioutil.WriteFile,
readFile: os.ReadFile,
writeFile: os.WriteFile,
logger: logger,
}
}