Skip to content

Commit

Permalink
chore: remove deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Hofmans authored and hazcod committed Mar 1, 2023
1 parent 2750d00 commit 6f0710c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"
"io/ioutil"
"os"
)

const (
Expand Down Expand Up @@ -62,7 +62,7 @@ func LoadConfig(logger *logrus.Logger, path string) (*Config, error) {
var config Config

if path != "" {
configBytes, err := ioutil.ReadFile(path)
configBytes, err := os.ReadFile(path)
if err != nil {
return nil, errors.Wrap(err, "could not load configuration file")
}
Expand Down

0 comments on commit 6f0710c

Please sign in to comment.