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

fix: Set has_result to false when there is no value returned in kv.getWithMetadata() #93

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

jahands
Copy link
Collaborator

@jahands jahands commented Mar 4, 2024

We currently set has_result to true because getWithMetadata always returns an object with value/metadata even if the key didn't exist.

This should still return true when the key has an empty value because !!emptyString = true

@jahands jahands merged commit 23363aa into main Mar 5, 2024
1 check passed
@jahands jahands deleted the jahands/fix-kv-result branch March 5, 2024 13:41
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.

1 participant