Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

Ayoub-Mabrouk
Copy link
Contributor

The function now directly returns the existing buffer if the input is already a buffer, eliminating the need for a negated condition. This improves code readability and maintains functionality by ensuring that non-buffer inputs are converted to a buffer using the specified encoding.

The function now directly returns the existing buffer if the input is already a buffer,
eliminating the need for a negated condition. This improves code readability and
maintains functionality by ensuring that non-buffer inputs are converted to a buffer
using the specified encoding.
Copy link
Member

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

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

LGTM

@bjohansebas
Copy link
Member

Can it still be included in this patch version?

@bjohansebas bjohansebas merged commit 0cd9d86 into expressjs:master Nov 2, 2024
27 checks passed
@bjohansebas bjohansebas mentioned this pull request Jan 8, 2025
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.