Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method GetFirst returns the first key found in a branch #7

Closed
ulfox opened this issue Sep 2, 2021 · 1 comment · Fixed by #8
Closed

Method GetFirst returns the first key found in a branch #7

ulfox opened this issue Sep 2, 2021 · 1 comment · Fixed by #8
Labels
bug Something isn't working

Comments

@ulfox
Copy link
Owner

ulfox commented Sep 2, 2021

Describe the bug
Method GetFirst returns the first key that is found in the branch and not in the hierarchy.
This appears to be the case when the a branch that has the key is processed first.

Example:

key-1:
    key-2:
        key-3: value-1
    key-3:  value-2

Desired result for GetFirst("key-3") is value-2 but instead we get value-1

To Reproduce
Run GetFirst("someKey") with 2 keys

Expected behaviour
GetFirst should return value-1

@ulfox ulfox added the bug Something isn't working label Sep 2, 2021
@ulfox
Copy link
Owner Author

ulfox commented Sep 2, 2021

Fixed by: #8

@ulfox ulfox closed this as completed Sep 2, 2021
@ulfox ulfox linked a pull request Sep 12, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant