From 40fc2229a3a20f4bbfda82abb40d2f704c60661e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 24 Feb 2024 00:08:45 -0800 Subject: [PATCH] don't exit on empty tree --- src/main.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index feb5c27..dac7c2a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -950,10 +950,6 @@ async fn write_commit(config:WriteCommitConfig,b:Result(), 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()? };