Skip to content

Refactor proxy code to pass strict-null checks#248

Merged
petebacondarwin merged 1 commit intocloudflare:mainfrom
petebacondarwin:strict-null-checks-proxy
Jan 18, 2022
Merged

Refactor proxy code to pass strict-null checks#248
petebacondarwin merged 1 commit intocloudflare:mainfrom
petebacondarwin:strict-null-checks-proxy

Conversation

@petebacondarwin
Copy link
Copy Markdown
Contributor

No description provided.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 15, 2022

🦋 Changeset detected

Latest commit: 15d7a40

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

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

I prefer inlined abstractions to prevent jumping around to understand the code, but ok.

Copy link
Copy Markdown
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

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

Please add a changeset!

@petebacondarwin
Copy link
Copy Markdown
Contributor Author

I prefer inlined abstractions to prevent jumping around to understand the code, but ok.

Yeah, I know what you mean.

There is also the converse problem where the inlined function is so big that it is difficult to understand the calling code: i.e. it is difficult to see and understand the calling code in one go, since the rest of the code is off the screen.

In this case, it felt that the benefits to the calling code outweighed the cost of not having the function inline. (Cmd-Click is my friend in these cases).

@petebacondarwin petebacondarwin force-pushed the strict-null-checks-proxy branch from ce2bd41 to 15d7a40 Compare January 18, 2022 14:31
@petebacondarwin petebacondarwin merged commit 5806932 into cloudflare:main Jan 18, 2022
@petebacondarwin petebacondarwin deleted the strict-null-checks-proxy branch January 18, 2022 14:34
@github-actions github-actions bot mentioned this pull request Jan 18, 2022
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

3 participants