Skip to content

Commit

Permalink
use if let not match
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Aug 23, 2024
1 parent 95adedc commit 2153087
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1933,11 +1933,8 @@ impl<F: AcirField> AcirContext<F> {
}
Some(optional_value) => {
let mut values = Vec::new();
match optional_value {
AcirValue::DynamicArray(_) => {
unreachable!("Dynamic array should already be initialized");
}
_ => {}
if let AcirValue::DynamicArray(_) = optional_value {
unreachable!("Dynamic array should already be initialized");
}
self.initialize_array_inner(&mut values, optional_value)?;
values
Expand Down

0 comments on commit 2153087

Please sign in to comment.