From 545f30f5cc085f4c99c7004bf999a2cf05b56a42 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 22 Jul 2018 22:43:48 +0800 Subject: [PATCH] just return error instead. (#1046) --- migrate/migrate.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/migrate/migrate.go b/migrate/migrate.go index 21c90e709..dc4cd1b53 100644 --- a/migrate/migrate.go +++ b/migrate/migrate.go @@ -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 {