Unwrap result from delta_rev_head in EventContext
@@ -195,15 +195,8 @@ impl<'a> EventContext<'a> {
// The action that follows the block must belong to a separate undo group
self.editor.borrow_mut().update_edit_type();
- let res = self.editor.borrow_mut().delta_rev_head(starting_revision);
- if let Some(delta) = res {
+ let delta = self.editor.borrow_mut().delta_rev_head(starting_revision).unwrap();
self.update_plugins(&mut self.editor.borrow_mut(), delta, "core");
- } else {
- error!(
- "Failed to update plugins. Could not find delta for revision {}",
- starting_revision
- );
- }
}
SpecialEvent::ClearRecording(recording_name) => {
let mut recorder = self.recorder.borrow_mut();
