Skip to content

Commit

Permalink
PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Jun 30, 2024
1 parent 1d88109 commit 70954fd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,10 +648,13 @@ pub(crate) fn convert_to_expected_type(
}

// Only the element at index 1 needs conversion.
result.push(convert_to_expected_type(array.remove(1), Some(ExpectedReturnType::Map {
key_type: &Some(ExpectedReturnType::BulkString),
value_type: &Some(ExpectedReturnType::ArrayOfPairs),
}))?);
result.push(convert_to_expected_type(
array.remove(1),
Some(ExpectedReturnType::Map {
key_type: &Some(ExpectedReturnType::BulkString),
value_type: &Some(ExpectedReturnType::ArrayOfPairs),
})
)?);

if let Some(value) = stale_entry_ids {
result.push(value);
Expand Down

0 comments on commit 70954fd

Please sign in to comment.