From f6e79d9414a3ebe518164344cef878c5662d312f Mon Sep 17 00:00:00 2001 From: Shoham Elias Date: Sun, 11 Aug 2024 15:05:14 +0000 Subject: [PATCH] fix linter Signed-off-by: Shoham Elias --- glide-core/src/client/value_conversion.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/glide-core/src/client/value_conversion.rs b/glide-core/src/client/value_conversion.rs index 592da4d78a..7a0a6c3b77 100644 --- a/glide-core/src/client/value_conversion.rs +++ b/glide-core/src/client/value_conversion.rs @@ -582,7 +582,7 @@ pub(crate) fn convert_to_expected_type( ) } } - + Value::Array(outer_array) if matches!(outer_array[0], Value::Array(_) | Value::Map(_) ) => { let first_inner_item = &outer_array[0]; let mut converted_map = convert_to_expected_type(first_inner_item.clone(), Some(ExpectedReturnType::FunctionStatsReturnType))?; @@ -594,11 +594,10 @@ pub(crate) fn convert_to_expected_type( break; } } - } + } converted_map = convert_to_expected_type(inner_item.clone(), Some(ExpectedReturnType::FunctionStatsReturnType))?; - } - + Ok(converted_map) }, Value::Array(mut array) if array.len() == 4 => {