fix(lint): golangci-lint warning.

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2022-12-17 22:59:18 +08:00
parent 6fa9769a31
commit fe402a578a
6 changed files with 11 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ package config
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"runtime"
"strings"
@@ -308,7 +308,7 @@ func LoadConf(confPath ...string) (*ConfYaml, error) {
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
if len(confPath) > 0 && confPath[0] != "" {
content, err := ioutil.ReadFile(confPath[0])
content, err := os.ReadFile(confPath[0])
if err != nil {
return conf, err
}