🎨 Clean code

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-09 15:40:02 +08:00
parent 5288f0c631
commit 7160aa8b3a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}