Skip to content

Commit 431c029

Browse files
unhappychoiceclaude
andcommitted
fix(animation): collapse nested if into match arm guard
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 parent 5b7f03b commit 431c029

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎src/animation.rs‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,10 @@ impl AnimationEngine {
477477
self.record_checkpoint(CheckpointKind::Change);
478478
self.record_checkpoint(CheckpointKind::Line);
479479
}
480-
AnimationStep::Pause { multiplier } => {
481-
if self.active_pane == ActivePane::Editor {
482-
self.record_checkpoint(CheckpointKind::Line);
483-
if Self::is_change_pause(*multiplier) {
484-
self.record_checkpoint(CheckpointKind::Change);
485-
}
480+
AnimationStep::Pause { multiplier } if self.active_pane == ActivePane::Editor => {
481+
self.record_checkpoint(CheckpointKind::Line);
482+
if Self::is_change_pause(*multiplier) {
483+
self.record_checkpoint(CheckpointKind::Change);
486484
}
487485
}
488486
_ => {}

0 commit comments

Comments
 (0)