mirror of https://github.com/pressly/goose.git
refactor: remove deprecated ioutil
parent
baaec139e4
commit
8574431aad
|
@ -4,7 +4,6 @@ import (
|
|||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/pressly/goose/v3/internal/sqlparser"
|
||||
)
|
||||
|
@ -15,7 +14,7 @@ type sqlMigration struct {
|
|||
}
|
||||
|
||||
func parseSQLFile(r io.Reader, debug bool) (*sqlMigration, error) {
|
||||
by, err := ioutil.ReadAll(r)
|
||||
by, err := io.ReadAll(r)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue