Skip to content

Conversation

gkorland
Copy link
Contributor

@gkorland gkorland commented May 4, 2022

No description provided.

meir and others added 2 commits May 3, 2022 18:21
1. Pop last token from json path
2. Check if the json path is static path (lead to single result)
3. Check the amount of tokens on the json path
@gkorland gkorland requested a review from MeirShpilraien May 4, 2022 12:55
@@ -65,14 +59,14 @@ impl<'i> Query<'i> {
}

pub fn is_static(&mut self) -> bool {
if self.is_static.is_some() {
return *self.is_static.as_ref().unwrap();
if let Some(s) = self.is_static {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this will consume the option value and will leave it None?

Copy link

@MeirShpilraien MeirShpilraien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Small question.

Base automatically changed from new_jsonpath_functionalities to master August 25, 2022 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants