Do not shadow 'asset'

This commit is contained in:
Nise Void 2017-04-06 14:03:54 +02:00
parent 9a8dc490ef
commit 3dc4599329
1 changed files with 2 additions and 2 deletions

View File

@ -68,12 +68,12 @@ func Migrate(db *sql.DB, version int, o Options, asset AssetFunc) error {
defer tx.Rollback()
for i := v + 1; i <= version; i++ {
asset, err := asset(fmt.Sprintf(o.AssetPrefix+fileFormat, i))
script, err := asset(fmt.Sprintf(o.AssetPrefix+fileFormat, i))
if err != nil {
return ErrUpdatesMissing
}
_, err = tx.Exec(string(asset))
_, err = tx.Exec(string(script))
if err != nil {
return err
}