don't exit on empty tree

This commit is contained in:
Quaternions 2024-02-24 00:08:45 -08:00
parent 4007b2cb0d
commit 40fc2229a3

View File

@ -950,10 +950,6 @@ async fn write_commit(config:WriteCommitConfig,b:Result<AResult<(AssetVersion,De
Ok(_)=>(), Ok(_)=>(),
Err(e)=>println!("tree_index.update_all error: {}",e), Err(e)=>println!("tree_index.update_all error: {}",e),
} }
if tree_index.len()==0{
println!("tree_index.len()==0");
return Ok(());
}
tree_index.write()?; tree_index.write()?;
tree_index.write_tree()? tree_index.write_tree()?
}; };