Skip to content

Commit efb3a99

Browse files
scoprubenv
authored andcommitted
Avoid use of deprecated io/ioutil
1 parent 6d3e3af commit efb3a99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql-migrate/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"errors"
66
"flag"
77
"fmt"
8-
"io/ioutil"
98
"os"
109
"runtime/debug"
1110

@@ -45,7 +44,7 @@ type Environment struct {
4544
}
4645

4746
func ReadConfig() (map[string]*Environment, error) {
48-
file, err := ioutil.ReadFile(ConfigFile)
47+
file, err := os.ReadFile(ConfigFile)
4948
if err != nil {
5049
return nil, err
5150
}

0 commit comments

Comments
 (0)