Skip to content

Commit

Permalink
Clean up value_conversion.rs a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanl-bq committed Jul 4, 2024
1 parent 1a90397 commit 37542ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -857,13 +857,12 @@ pub(crate) fn convert_to_expected_type(
let Some(groups_index) = opt_groups_index else {
return Err((ErrorKind::TypeError, "Groups key not found").into());
};
dbg!(groups_index);

if array.get(groups_index + 1).is_none() {
return Err((ErrorKind::TypeError, "No groups value found.").into());
}

let Value::Array(mut groups) = array[groups_index + 1].clone() else {
let Value::Array(groups) = array[groups_index + 1].clone() else {
return Err((ErrorKind::TypeError, "Incorrect value type received. Wanted an Array.").into());
};

Expand Down Expand Up @@ -897,7 +896,6 @@ pub(crate) fn convert_to_expected_type(
converted_key == consumers_key
},
Err(_) => {
//error_while_converting_key = true;
false
}
}
Expand Down

0 comments on commit 37542ef

Please sign in to comment.