Skip to content

Commit

Permalink
cluster: fix progressBar return nil (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar authored Nov 16, 2021
1 parent ce8eb0a commit 4f09e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cluster/task/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ func (s *StepDisplay) Execute(ctx context.Context) error {

switch s.DisplayMode {
case log.DisplayModeJSON:
return printDp(dp)
_ = printDp(dp)
default:
s.progressBar.UpdateDisplay(dp)
}
return nil
return err
}

// Rollback implements the Task interface
Expand Down

0 comments on commit 4f09e34

Please sign in to comment.