From e4964bb6107a3b6dd263ca73ab9f5a9c8779468d Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Thu, 1 Feb 2024 18:31:04 +0800 Subject: [PATCH] fix: fix the outpu error --- tools/component/component.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/component/component.go b/tools/component/component.go index f5d159666..293e6d9fa 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -91,12 +91,11 @@ func main() { fmt.Printf("Checking components Round %v...\n", i+1) var ( - allSuccess bool - disruptions bool - err error - errInfo string + err error + errInfo string ) - disruptions = true + allSuccess := true + disruptions := true for _, check := range checks { errInfo, err = check.function() if err != nil {