Skip to content

Commit

Permalink
cluster:fix progressBar return nil
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar committed Nov 16, 2021
1 parent ce8eb0a commit 3713716
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 3713716

Please sign in to comment.