Skip to content

Refactor compileETag function for clarity - #6098

Closed
Ayoub-Mabrouk wants to merge 1 commit into
expressjs:masterfrom
Ayoub-Mabrouk:chore/compileETag
Closed

Ayoub-Mabrouk wants to merge 1 commit into
expressjs:masterfrom
Ayoub-Mabrouk:chore/compileETag

Conversation

@Ayoub-Mabrouk

@Ayoub-Mabrouk Ayoub-Mabrouk commented Oct 29, 2024 •

Copy link
Copy Markdown
Contributor
  • Simplified logic by removing unnecessary variable assignments.
  • Streamlined the switch statement to directly return the appropriate ETag function.
  • Updated JSDoc comments for consistency and clarity.
  • Removed redundant handling of false, returning undefined directly.

Related: #6093

- Simplified logic by removing unnecessary variable assignments.
- Streamlined the switch statement to directly return the appropriate ETag function.
- Updated JSDoc comments for consistency and clarity.
- Removed redundant handling of false, returning undefined directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants