Use expect for getting clock
This commit is contained in:
parent
3a8e833187
commit
2c1a71e143
1 changed files with 4 additions and 1 deletions
|
@ -980,7 +980,10 @@ impl Automerge {
|
|||
|
||||
let mut clock = Clock::new();
|
||||
for hash in &change.deps {
|
||||
let c = self.clocks.get(hash).unwrap();
|
||||
let c = self
|
||||
.clocks
|
||||
.get(hash)
|
||||
.expect("Change's deps should already be in the document");
|
||||
clock.merge(c);
|
||||
}
|
||||
clock.include(
|
||||
|
|
Loading…
Add table
Reference in a new issue