Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Shoham Elias <[email protected]>
  • Loading branch information
shohamazon committed Aug 11, 2024
1 parent d259549 commit f6e79d9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?;
Expand All @@ -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 => {
Expand Down

0 comments on commit f6e79d9

Please sign in to comment.