Fix a few vet warnings (#5674)

This commit is contained in:
Jim Kalafut
2018-11-02 13:21:44 -07:00
committed by GitHub
parent a4c693014b
commit 5dc74f4af5
3 changed files with 1 additions and 4 deletions

View File

@@ -184,6 +184,7 @@ func (c *OperatorMigrateCommand) migrate(config *migratorConfig) error {
select {
case err := <-doneCh:
cancelFunc()
return err
case <-c.ShutdownCh:
c.UI.Output("==> Migration shutdown triggered\n")
@@ -191,7 +192,6 @@ func (c *OperatorMigrateCommand) migrate(config *migratorConfig) error {
<-doneCh
return errAbort
}
return nil
}
// migrateAll copies all keys in lexicographic order.