Merge pull request #106 from bobbyrullo/shadow_stevens

cmd/dex-overlord: was using the wrong err
This commit is contained in:
bobbyrullo 2015-09-01 17:09:34 -07:00
commit ff71593cd7

View file

@ -80,7 +80,9 @@ func main() {
if *dbMigrate {
var sleep time.Duration
for {
if migrations, err := db.MigrateToLatest(dbc); err == nil {
var err error
var migrations int
if migrations, err = db.MigrateToLatest(dbc); err == nil {
log.Infof("Performed %d db migrations", migrations)
break
}