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

lib: fix duplicate logic in stream destroy #35727

Open
wants to merge 1 commit into
base: master
from

Conversation

@yashLadha
Copy link
Contributor

@yashLadha yashLadha commented Oct 21, 2020

Fix duplicate logic in stream destroy as the same logic is being shared
across methods and thus can be encapsulated into a single method.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
@nodejs-github-bot
Copy link

@nodejs-github-bot nodejs-github-bot commented Oct 21, 2020

Review requested:

@codecov-io
Copy link

@codecov-io codecov-io commented Oct 21, 2020

Codecov Report

Merging #35727 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #35727      +/-   ##
==========================================
- Coverage   96.40%   96.40%   -0.01%     
==========================================
  Files         222      223       +1     
  Lines       73682    73679       -3     
==========================================
- Hits        71033    71029       -4     
- Misses       2649     2650       +1     
Impacted Files Coverage Δ
lib/internal/streams/destroy.js 96.80% <100.00%> (-0.06%) ⬇️
lib/_http_server.js 98.34% <0.00%> (-0.11%) ⬇️
lib/util/types.js 100.00% <0.00%> (ø)

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 4f296d2...fb42577. Read the comment docs.

@lpinca
lpinca approved these changes Oct 21, 2020
@lpinca
Copy link
Member

@lpinca lpinca commented Oct 21, 2020

The subsystem in commit title should be stream:.

Fix duplicate logic in stream destroy as the same logic is being shared
across methods and thus can be encapsulated into a single method.
@yashLadha yashLadha force-pushed the yashLadha:fix_duplicate_logic_stream_destroy branch from fb42577 to 464d7c6 Oct 21, 2020
@yashLadha
Copy link
Contributor Author

@yashLadha yashLadha commented Oct 21, 2020

Updated @lpinca

Copy link
Member

@mcollina mcollina left a comment

lgtm

@ronag
ronag approved these changes Oct 21, 2020
@Trott
Trott approved these changes Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

You can’t perform that action at this time.