Skip to content

Commit

Permalink
🐛 S3/WebDAV cannot get the list of cloud snapshots siyuan-note/siyuan…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Aug 28, 2024
1 parent f563b9b commit c8e544e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloud/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (s3 *S3) GetIndexes(page int) (ret []*entity.Index, pageCount, totalCount i

for i := start; i < end; i++ {
index, getErr := s3.repoIndex(indexesJSON.Indexes[i].ID)
if nil != err {
if nil != getErr {
logging.LogWarnf("get index [%s] failed: %s", indexesJSON.Indexes[i], getErr)
continue
}
Expand Down
2 changes: 1 addition & 1 deletion cloud/webdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (webdav *WebDAV) GetIndexes(page int) (ret []*entity.Index, pageCount, tota
repoKey := path.Join(webdav.Dir, "siyuan", "repo")
for i := start; i < end; i++ {
index, getErr := webdav.repoIndex(repoKey, indexesJSON.Indexes[i].ID)
if nil != err {
if nil != getErr {
logging.LogWarnf("get index [%s] failed: %s", indexesJSON.Indexes[i], getErr)
continue
}
Expand Down

0 comments on commit c8e544e

Please sign in to comment.