mirror of
https://github.com/pressly/goose.git
synced 2025-05-30 19:23:14 +00:00
refactor: remove deprecated ioutil
This commit is contained in:
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…
x
Reference in New Issue
Block a user