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

refactor: reduce code duplication #891

Merged
merged 5 commits into from
Jul 19, 2021
Merged

refactor: reduce code duplication #891

merged 5 commits into from
Jul 19, 2021

Conversation

ronag
Copy link
Member

@ronag ronag commented Jul 19, 2021

writeIterable and writeStream shared a lot of duplicate logic.

@ronag ronag requested a review from mcollina July 19, 2021 08:01
@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2021

Codecov Report

Merging #891 (7b92457) into main (ad2a490) will decrease coverage by 0.09%.
The diff coverage is 96.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #891      +/-   ##
==========================================
- Coverage   99.62%   99.52%   -0.10%     
==========================================
  Files          26       26              
  Lines        2126     2115      -11     
==========================================
- Hits         2118     2105      -13     
- Misses          8       10       +2     
Impacted Files Coverage Δ
lib/client.js 99.34% <96.82%> (-0.27%) ⬇️

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 ad2a490...7b92457. Read the comment docs.

@ronag ronag requested a review from dnlup July 19, 2021 08:05
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@ronag ronag merged commit 7509c0b into main Jul 19, 2021
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
* refactor: reduce code duplication

* fixup

* fixup

* fixup

* fixup
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