Remove unnecessary timing measurement in ApiContext:read function to streamline performance logging

This commit is contained in:
Joe 2026-03-01 14:34:34 -06:00
parent a4042d3d97
commit c0f5a01e17
2 changed files with 1 additions and 5 deletions

View file

@ -564,10 +564,7 @@ pub fn git_add(repo_root: &Path, paths: &[PathBuf]) {
Ok(m) => m,
Err(_) => continue,
};
let stat = match gix::index::entry::Stat::from_fs(&gix_meta) {
Ok(s) => s,
Err(_) => gix::index::entry::Stat::default(),
};
let stat = gix::index::entry::Stat::from_fs(&gix_meta).unwrap_or_default();
if let Some(existing) = index
.entry_mut_by_path_and_stage(bstr_path.as_ref(), gix::index::entry::Stage::Unconflicted)