fs: assert that sha256 is present

This commit is contained in:
Fabian 2020-12-31 19:14:29 -06:00
parent c994dbc08c
commit b0a34e7a86

View file

@ -212,6 +212,7 @@ FS.prototype.LoadRecursive = function(data, parentid)
{
inode.status = STATUS_ON_STORAGE;
inode.sha256sum = data[JSONFS_IDX_SHA256];
dbg_assert(inode.sha256sum);
this.PushInode(inode, parentid, name);
}
else if(ifmt === S_IFLNK)