Skip to content

Commit

Permalink
refactor: remove deprecated ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Mar 21, 2023
1 parent baaec13 commit 8574431
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/migrationstats/migration_sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"

"github.com/pressly/goose/v3/internal/sqlparser"
)
Expand All @@ -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
}
Expand Down

0 comments on commit 8574431

Please sign in to comment.