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

Update multiple KJ_IF_MAYBE uses to KJ_IF_SOME in workerd/api #1140

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Sep 7, 2023

No description provided.

JSG_REQUIRE(kj::Url::tryParse(url, kj::Url::HTTP_PROXY_REQUEST, urlOptions) != kj::none,
TypeError, "Invalid URL. Cache API keys must be fully-qualified, valid URLs.");

return url;
Copy link
Collaborator

Choose a reason for hiding this comment

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

hmm, maybe this isn't feasible or at least not trivial, but while we're changing kj::Maybe semantics, I wonder if we could also make the kj::Maybe<T> to T conversion explicit? Maybe this was already discussed and I missed it, if so apologies.

CC @harrishancock

@jasnell jasnell force-pushed the jsnell/kj-if-some-conversions branch from f9773e4 to aaf12c1 Compare September 11, 2023 20:00
@jasnell jasnell force-pushed the jsnell/kj-if-some-conversions branch from aaf12c1 to d92776b Compare September 19, 2023 17:29
@jasnell jasnell merged commit c3501c9 into main Sep 19, 2023
7 checks passed
@fhanau fhanau deleted the jsnell/kj-if-some-conversions branch December 4, 2023 22:34
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.

3 participants