Skip to content

Conversation

@weewey
Copy link
Contributor

refactor http.get expectedCount with common.mustCall

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
Affected core subsystem(s)

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Apr 26, 2017
@vsemozhetbyt
Copy link
Contributor

Linter:

 94:5 error 'expectResponseCount' is assigned a value but never used no-unused-vars 95:5 error 'responseCount' is assigned a value but never used no-unused-vars 95:5 error 'responseCount' is never reassigned. Use 'const' instead prefer-const 

It seems these variables are not needed anymore.

Copy link
Contributor

Choose a reason for hiding this comment

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

You should probably remove expectResponseCount usages too.

@mscdexmscdex added http Issues or PRs related to the http subsystem. https Issues or PRs related to the https subsystem. and removed http Issues or PRs related to the http subsystem. labels Apr 26, 2017
@weewey
Copy link
ContributorAuthor

missed out on removing the variables. I have removed expectResponseCount and responseCount.

@vsemozhetbyt
Copy link
Contributor

Copy link
Member

@TrottTrott left a comment

Choose a reason for hiding this comment

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

LGTM.

@Trott
Copy link
Member

Based on email conversation with @weewey, I believe the third commit with changes to test-https-simple.js is intended for a separate PR.

@weewey
Copy link
ContributorAuthor

yes @Trott

I committed the changes in the same branch, as a result the commit was appended.

@weewey
Copy link
ContributorAuthor

@Trott removed.

@Trott
Copy link
Member

jasnell pushed a commit that referenced this pull request Apr 28, 2017
PR-URL: #12668 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

Landed in f11d4a1

@jasnelljasnell closed this Apr 28, 2017
@evanlucasevanlucas mentioned this pull request May 1, 2017
evanlucas pushed a commit that referenced this pull request May 1, 2017
PR-URL: #12668 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]>
evanlucas pushed a commit that referenced this pull request May 2, 2017
PR-URL: #12668 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]>
evanlucas pushed a commit that referenced this pull request May 2, 2017
PR-URL: #12668 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]>
@gibfahn
Copy link
Member

@weewey Would you be willing to backport to v6.x? If yes please follow the guide and raise a backport PR, if no let me know or add the dont-land-on label.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

httpsIssues or PRs related to the https subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@weewey@vsemozhetbyt@Trott@jasnell@gibfahn@hiroppy@aqrln@mscdex@nodejs-github-bot