Skip to content

Commit 6f0710c

Browse files
Niels Hofmanshazcod
authored andcommitted
chore: remove deprecated api
1 parent 2750d00 commit 6f0710c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/pkg/errors"
66
"github.com/sirupsen/logrus"
77
"gopkg.in/yaml.v3"
8-
"io/ioutil"
8+
"os"
99
)
1010

1111
const (
@@ -62,7 +62,7 @@ func LoadConfig(logger *logrus.Logger, path string) (*Config, error) {
6262
var config Config
6363

6464
if path != "" {
65-
configBytes, err := ioutil.ReadFile(path)
65+
configBytes, err := os.ReadFile(path)
6666
if err != nil {
6767
return nil, errors.Wrap(err, "could not load configuration file")
6868
}

0 commit comments

Comments
 (0)