From 58349c363900aba7be6124f9624b3884504f2b1e Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Fri, 8 Mar 2024 23:51:43 +0800 Subject: [PATCH] fix bug: component check --- tools/component/component.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/component/component.go b/tools/component/component.go index bd4b9de5c..bd98e5b0f 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -119,14 +119,14 @@ func main() { } } - if allSuccess { - component.SuccessPrint("All components started successfully!") - return - } } - component.ErrorPrint("Some components checked failed!") - os.Exit(-1) + if allSuccess { + component.SuccessPrint("All components started successfully!") + return + } } + component.ErrorPrint("Some components checked failed!") + os.Exit(-1) } var errMinioNotEnabled = errors.New("minio.Enable is not configured to use MinIO")