Skip to content

perf: avoid useless Object.entries - #167

Merged
Phillip9587 merged 3 commits into
pillarjs:masterfrom
nigrosimone:patch-1
Oct 1, 2026
Merged

Phillip9587 merged 3 commits into
pillarjs:masterfrom
nigrosimone:patch-1

Conversation

@nigrosimone

@nigrosimone nigrosimone commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Just a micro optimization for avoid useless Object.entries(headers ?? {})

@nigrosimone
nigrosimone marked this pull request as ready for review September 20, 2026 16:10
@Phillip9587

Copy link
Copy Markdown
Contributor

Hey @nigrosimone, thanks for the PR. Can you please run npm run lint -- --fix to fix the formatting issues our linter is complaining about?

@nigrosimone

Copy link
Copy Markdown
Contributor Author

Hey @nigrosimone, thanks for the PR. Can you please run npm run lint -- --fix to fix the formatting issues our linter is complaining about?

Done

@Phillip9587 Phillip9587 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is a very small optimization likely not really impacting performance, but I like it!

@Phillip9587
Phillip9587 merged commit e5890f7 into pillarjs:master Oct 1, 2026
16 checks passed
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