Skip to content

Commit 5d0a1cc

Browse files
committed
🐛 Failed to purge cloud repo siyuan-note/siyuan#16262
1 parent 160d3a3 commit 5d0a1cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

repo.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ func (repo *Repo) PurgeCloud() (ret *entity.PurgeStat, err error) {
168168
objIDs := map[string]bool{}
169169
for objPath, _ := range objInfos {
170170
objID := strings.ReplaceAll(objPath, "/", "")
171+
if "" == objID {
172+
logging.LogWarnf("got empty object ID [path=%s]", objPath)
173+
continue
174+
}
171175
objIDs[objID] = true
172176
}
173177

0 commit comments

Comments
 (0)