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

refactor(services/cloudflare-kv): remove unneeded async and result on parse_error #5128

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

tsfotis
Copy link
Contributor

@tsfotis tsfotis commented Sep 19, 2024

Rationale for this change

  • No need for parse_error to be async
  • No need to return a Result, since everything that can fail has a fallback (unwrap_or, unwrap_or_else)

What changes are included in this PR?

removes unneeded async and Result from parse_error()

Are there any user-facing changes?

No

@tsfotis tsfotis changed the title refactor(cloudflare-kv): remove unneeded async and result on parse_error refactor(services/cloudflare-kv): remove unneeded async and result on parse_error Sep 19, 2024
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thanks!

@Xuanwo Xuanwo merged commit da9a685 into apache:main Sep 19, 2024
82 checks passed
@tsfotis
Copy link
Contributor Author

tsfotis commented Sep 19, 2024

@Xuanwo After a quick search I found many occurrences of this pattern.
Would you be open to a PR with that many changes?

@tsfotis tsfotis deleted the refactor/cloudflare-kv-error branch September 19, 2024 17:21
@Xuanwo
Copy link
Member

Xuanwo commented Sep 19, 2024

Would you be open to a PR with that many changes?

I'm with such a PR, thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants