Skip to content

Commit

Permalink
just return error instead. (go-xorm#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy authored and lunny committed Jul 22, 2018
1 parent ad69f7d commit 545f30f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ func (m *Migrate) Migrate() error {
}

if m.initSchema != nil && m.isFirstRun() {
if err := m.runInitSchema(); err != nil {
return err
}
return nil
return m.runInitSchema()
}

for _, migration := range m.migrations {
Expand Down

0 comments on commit 545f30f

Please sign in to comment.