cmd/dex-overlord: was using the wrong err

This commit is contained in:
Bobby Rullo 2015-09-01 17:07:10 -07:00
parent 081bfdd13d
commit 62aa12fa6c

View file

@ -80,7 +80,9 @@ func main() {
if *dbMigrate { if *dbMigrate {
var sleep time.Duration var sleep time.Duration
for { 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) log.Infof("Performed %d db migrations", migrations)
break break
} }