🎨 Clean code

This commit is contained in:
Daniel 2025-04-27 12:06:57 +08:00
parent 147e635782
commit 4749d0fca5
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -716,11 +716,12 @@ func planSyncAfter(d time.Duration) {
}
func isProviderOnline(byHand bool) (ret bool) {
checkURL := util.GetCloudSyncServer()
var checkURL string
skipTlsVerify := false
timeout := 3000
switch Conf.Sync.Provider {
case conf.ProviderSiYuan:
checkURL = util.GetCloudSyncServer()
case conf.ProviderS3:
checkURL = Conf.Sync.S3.Endpoint
skipTlsVerify = Conf.Sync.S3.SkipTlsVerify