Skip to content

Commit

Permalink
✨ 数据同步支持接入第三方 WebDAV 服务 siyuan-note/siyuan#6446
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 5, 2022
1 parent f9c5959 commit 6eaf945
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cloud/webdav.go
Expand Up @@ -354,11 +354,6 @@ func (webdav *WebDAV) repoLatest(repoDir string) (id string, err error) {
latestPath := path.Join(repoDir, "refs", "latest")
_, err = webdav.Client.Stat(latestPath)
if nil != err {
// TODO:
// if isErrNotFound(err) {
// err = nil
// return
//}
err = webdav.parseErr(err)
return
}
Expand Down Expand Up @@ -388,11 +383,7 @@ func (webdav *WebDAV) repoIndex(repoDir, id string) (ret *entity.Index, err erro
indexPath := path.Join(repoDir, "indexes", id)
info, err := webdav.Client.Stat(indexPath)
if nil != err {
// TODO:
// if isErrNotFound(err) {
// err = nil
// return
//}
err = webdav.parseErr(err)
return
}
if 1 > info.Size() {
Expand Down

0 comments on commit 6eaf945

Please sign in to comment.