diff --git a/plugin/src/ApiContext.lua b/plugin/src/ApiContext.lua index 01c98cd1..59587586 100644 --- a/plugin/src/ApiContext.lua +++ b/plugin/src/ApiContext.lua @@ -216,7 +216,6 @@ function ApiContext:read(ids) end) :andThen(rejectFailedRequests) :andThen(function(response) - local decodeClock = os.clock() Log.trace("[TIMING] ApiContext:read() msgpack decode starting") return Http.Response.msgpack(response) end) diff --git a/src/git.rs b/src/git.rs index 7b6296f7..a3280ce8 100644 --- a/src/git.rs +++ b/src/git.rs @@ -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)