Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

dircache: allow empty string as root parent id

dougal8c7b7ac89140
diff --git a/lib/dircache/dircache.go b/lib/dircache/dircache.go
index 7fdf9e1af..6a17dc2ca 100644
--- a/lib/dircache/dircache.go
+++ b/lib/dircache/dircache.go
@@ -361,9 +361,6 @@ func (dc *DirCache) RootParentID(ctx context.Context, create bool) (ID string, e
} else if dc.rootID == dc.trueRootID {
return "", errors.New("is root directory")
}
- if dc.rootParentID == "" {
- return "", errors.New("internal error: didn't find rootParentID")
- }
return dc.rootParentID, nil
}