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!: do not return an error when exists key does not exist #18

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

rvolosatovs
Copy link
Contributor

Currently readwrite.exists method must return an error for keys that do not exist, which makes the return value (bool) of that method redundant.
Remove the requirement to return an error to address this inconsistency.

Alternatively, the bool return value could be removed, but IMO exists would not be the right name for such method anymore

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Copy link
Collaborator

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

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

LGTM!

@Mossaka Mossaka merged commit 33fda9e into WebAssembly:main Aug 23, 2023
1 check passed
@rvolosatovs rvolosatovs deleted the fix/no-exists-error branch August 23, 2023 16:45
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