Skip to content

Commit

Permalink
Update config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
laurfb authored Feb 13, 2023
1 parent f7a3e29 commit f498f98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ func Parse(paths []string) (*Config, error) {

// try to read file from given paths
for _, path := range paths {
data, err = ioutil.ReadFile(path)
//***data, err = ioutil.ReadFile(path)
data, err = os.ReadFile(path)
if err == nil {
log.Println("Read config from", path)
break
Expand Down

0 comments on commit f498f98

Please sign in to comment.