mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
5288f0c631
commit
7160aa8b3a
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue