diff --git a/crates/noirc_evaluator/src/ssa/acir_gen/mod.rs b/crates/noirc_evaluator/src/ssa/acir_gen/mod.rs index 25a0c2ee2e8..f473becd966 100644 --- a/crates/noirc_evaluator/src/ssa/acir_gen/mod.rs +++ b/crates/noirc_evaluator/src/ssa/acir_gen/mod.rs @@ -736,13 +736,11 @@ impl Context { ) -> Result { match self.convert_value(value_id, dfg) { AcirValue::Var(acir_var, _) => Ok(acir_var), - AcirValue::Array(array) => { - return Err(InternalError::UnExpected { - expected: "a numeric value".to_string(), - found: format!("{array:?}"), - location: self.acir_context.get_location(), - }) - } + AcirValue::Array(array) => Err(InternalError::UnExpected { + expected: "a numeric value".to_string(), + found: format!("{array:?}"), + location: self.acir_context.get_location(), + }), AcirValue::DynamicArray(_) => Err(InternalError::UnExpected { expected: "a numeric value".to_string(), found: "an array".to_string(),