refactor: better integrity check by tsctx · Pull Request #2462 · nodejs/undici (original) (raw)

@tsctx

If the integrity is null, it is safe to delete it because it will be converted to the string 'null' by DOMString.

@tsctx

@codecov-commenter

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.67%. Comparing base (e39a632) to head (893cde9).
⚠️ Report is 1433 commits behind head on main.

Additional details and impacted files

@@ Coverage Diff @@ ## main #2462 +/- ##

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:

KhafraDev

Choose a reason for hiding this comment

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

this should be the other way around. Remove the !== undefined and keep the != null

@tsctx

KhafraDev

mcollina

Choose a reason for hiding this comment

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

lgtm

@tsctx

metcoder95

@ronag

@tsctx I don't intend to discourage you. Some of the contributions you have been making have been absolutely great and I hope you continue doing so.

However, these small changes with limited value add extra work for us. I would appreciate it if we could reduce the amount of such minor refactorings and optimizations PRs.

@tsctx tsctx deleted the refactor/better-integrity-check branch

November 30, 2023 10:44

kodiakhq Bot referenced this pull request in X-oss-byte/Nextjs

Dec 1, 2023

@renovate

kodiakhq Bot referenced this pull request in X-oss-byte/Canary-nextjs

Dec 3, 2023

@renovate

kodiakhq Bot referenced this pull request in ascorbic/unpic-img

Dec 4, 2023

@renovate

gr2m referenced this pull request in octokit/rest.js

Dec 5, 2023

@renovate

renovate Bot referenced this pull request in specfy/specfy

Jan 16, 2024

@renovate

kodiakhq Bot referenced this pull request in X-oss-byte/Nextjs

Feb 7, 2024

@renovate

crysmags pushed a commit to crysmags/undici that referenced this pull request

Feb 27, 2024

@tsctx @crysmags

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})