From 4f09e34b7b68ce8c3988e3a761867ab8238733a1 Mon Sep 17 00:00:00 2001 From: nexustar Date: Tue, 16 Nov 2021 18:49:07 +0800 Subject: [PATCH] cluster: fix progressBar return nil (#1624) --- pkg/cluster/task/step.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cluster/task/step.go b/pkg/cluster/task/step.go index e8f212087d..fa34ec37ff 100644 --- a/pkg/cluster/task/step.go +++ b/pkg/cluster/task/step.go @@ -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