Skip to content

Commit

Permalink
Avoid use of deprecated io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored and rubenv committed Jan 8, 2024
1 parent 6d3e3af commit efb3a99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql-migrate/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"flag"
"fmt"
"io/ioutil"
"os"
"runtime/debug"

Expand Down Expand Up @@ -45,7 +44,7 @@ type Environment struct {
}

func ReadConfig() (map[string]*Environment, error) {
file, err := ioutil.ReadFile(ConfigFile)
file, err := os.ReadFile(ConfigFile)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit efb3a99

Please sign in to comment.