don't exit on empty tree
This commit is contained in:
parent
4007b2cb0d
commit
40fc2229a3
@ -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()?
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user