refactor(blob): use object trait to create blob

This commit is contained in:
grimhilt
2024-02-24 18:52:00 +01:00
parent 642c358737
commit faf7341525
17 changed files with 666 additions and 396 deletions

View File

@@ -208,7 +208,7 @@ fn get_non_new_local_element(iter: &mut dyn Iterator<Item = &PathBuf>) -> Option
!Object::new(el.unwrap().clone().to_str().unwrap()).exists()
} else {
// ignore newly created file (not sync)
Blob::new(el.unwrap().clone()).status(&mut None) == State::New
Blob::from_path(el.unwrap().clone()).status(&mut None) == State::New
}
} {
el = iter.next();