summaryrefslogtreecommitdiffstats
path: root/src/remake/switch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/switch.rs')
-rw-r--r--src/remake/switch.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/remake/switch.rs b/src/remake/switch.rs
index 903baea..ea56de6 100644
--- a/src/remake/switch.rs
+++ b/src/remake/switch.rs
@@ -232,10 +232,8 @@ async fn switch<H: Host>(
let mut doc = snapshot.doc.with_actor(actor);
// Keep this remake's record visible in the new epoch, for its history.
- if carry_record {
- if let Err(error) = store::copy_path(&copy, &mut doc, &record_path) {
- warn!(error = %error, "Could not carry the remake record into the new epoch");
- }
+ if carry_record && let Err(error) = store::copy_path(&copy, &mut doc, &record_path) {
+ warn!(error = %error, "Could not carry the remake record into the new epoch");
}
let heads = copy.get_heads();