mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-29 23:57:51 +00:00
transaction: slightly simplify write_commit() by using store()
This commit is contained in:
parent
49d386931d
commit
a28fe7b388
1 changed files with 1 additions and 7 deletions
|
@ -87,13 +87,7 @@ impl<'r> Transaction<'r> {
|
|||
}
|
||||
|
||||
pub fn write_commit(&mut self, commit: store::Commit) -> Commit {
|
||||
let commit = self
|
||||
.repo
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.repo
|
||||
.store()
|
||||
.write_commit(commit);
|
||||
let commit = self.store().write_commit(commit);
|
||||
self.add_head(&commit);
|
||||
commit
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue