Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify version check code with index.js #1335

Merged
merged 1 commit into from Apr 14, 2022
Merged

Unify version check code with index.js #1335

merged 1 commit into from Apr 14, 2022

Conversation

cjh980402
Copy link
Contributor

Prevent using unnecessary slice method and unify version check code.

@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2022

Codecov Report

Merging #1335 (9d695b6) into main (4b52053) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1335   +/-   ##
=======================================
  Coverage   94.12%   94.12%           
=======================================
  Files          45       45           
  Lines        4203     4204    +1     
=======================================
+ Hits         3956     3957    +1     
  Misses        247      247           
Impacted Files Coverage Δ
lib/core/request.js 98.65% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b52053...9d695b6. Read the comment docs.

@KhafraDev KhafraDev mentioned this pull request Apr 13, 2022
@ronag
Copy link
Member

ronag commented Apr 14, 2022

Could we move this into some kind of utils file?

@ronag ronag merged commit d55b28e into nodejs:main Apr 14, 2022
@cjh980402
Copy link
Contributor Author

The code for the node version check is duplicated, so it would be better using utils file.
But I can't sure of the best idea for where to implement it.

@cjh980402 cjh980402 deleted the patch-1 branch April 14, 2022 05:52
KhafraDev pushed a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
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.

None yet

3 participants