excplicitly breaking on NoPrintStatusRule

This commit is contained in:
Shlomi Noach 2016-09-12 17:39:56 +02:00
parent 1c6f828091
commit 0a8be1dd22

View File

@ -744,6 +744,9 @@ func (this *Migrator) printMigrationStatusHint(writers ...io.Writer) {
// By default the status is written to standard output, but other writers can
// be used as well.
func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
if rule == NoPrintStatusRule {
return
}
writers = append(writers, os.Stdout)
elapsedTime := this.migrationContext.ElapsedTime()