Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury-Fridlyand committed Oct 2, 2024
1 parent 57e0d78 commit 028978a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,8 @@ pub(crate) fn convert_to_expected_type(
Value::Array(ref array) if array.len() == 1 => Ok(value),
Value::Array(mut array) => {
Ok(Value::Array(vec![
array[0].clone(),
convert_to_expected_type(Value::Array(array.split_off(1)), Some(ExpectedReturnType::Map {
array.remove(0),
convert_to_expected_type(Value::Array(array), Some(ExpectedReturnType::Map {
key_type: &Some(ExpectedReturnType::BulkString),
value_type: &Some(ExpectedReturnType::Map {
key_type: &Some(ExpectedReturnType::BulkString),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CompletableFuture<String> ftcreate(
* @param options The search options - see {@link FTSearchOptions}.
* @return A two element array, where first element is count of documents in result set, and the
* second element, which has format <code>
* {@literal Map<GlideString, Map<GlideString, GlideString>>}</code> - a mapping between
* {@literal Map<GlideString, Map<GlideString, GlideString>>}</code>, is a mapping between
* document names and map of their attributes.<br>
* If {@link FTSearchOptionsBuilder#count()} or {@link FTSearchOptionsBuilder#limit(int, int)}
* with values <code>0, 0</code> is set, the command returns array with only one element - the
Expand Down

0 comments on commit 028978a

Please sign in to comment.