From 7160aa8b3a1d6b7467c79b6d2eb1a2d3ec28df68 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 9 Nov 2025 15:40:02 +0800 Subject: [PATCH] :art: Clean code Signed-off-by: Daniel <845765@qq.com> --- kernel/util/net.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/util/net.go b/kernel/util/net.go index fc55bd159..e8c6dc6f7 100644 --- a/kernel/util/net.go +++ b/kernel/util/net.go @@ -121,7 +121,6 @@ func isOnline(checkURL string, skipTlsVerify bool, timeout int) (ret bool) { for i := 0; i < 2; i++ { resp, err := c.R().Get(checkURL) - if resp.GetHeader("Location") != "" { return true } @@ -140,8 +139,8 @@ func isOnline(checkURL string, skipTlsVerify bool, timeout int) (ret bool) { break } - time.Sleep(1 * time.Second) logging.LogWarnf("check url [%s] is online failed: %s", checkURL, err) + time.Sleep(1 * time.Second) } return }