Skip to content

Commit 4554ee1

Browse files
committed
chore: satisfy stable clippy naming lint
1 parent acffc2d commit 4554ee1

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

  • crates/samesession-git/src

crates/samesession-git/src/lib.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,11 +607,16 @@ impl GitStore {
607607
fn update_ref(
608608
&self,
609609
reference: &str,
610-
oid: &str,
611-
old: Option<&str>,
610+
new_oid: &str,
611+
expected_old_oid: Option<&str>,
612612
) -> Result<(), GitStoreError> {
613-
let old = old.unwrap_or("0000000000000000000000000000000000000000");
614-
git_output(&self.repository, &["update-ref", reference, oid, old], None)?;
613+
let expected_old_oid =
614+
expected_old_oid.unwrap_or("0000000000000000000000000000000000000000");
615+
git_output(
616+
&self.repository,
617+
&["update-ref", reference, new_oid, expected_old_oid],
618+
None,
619+
)?;
615620
Ok(())
616621
}
617622

0 commit comments

Comments
 (0)