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

http: default Agent.getName to 'localhost' #2825

Closed
wants to merge 1 commit into from

Conversation

ahoym
Copy link
Contributor

@ahoym ahoym commented Sep 11, 2015

This PR will:

  • Refactor out the if/else conditional checking for option.host. If it exists, name will be initialized with it. If not, default to 'localhost'.
  • Add whitespace to make concatenation chunks more readable and consistent with the https version of Agent.getName.

Refactor out the if/else statement checking for option.host.
Add whitespace to make concatenation chunks more readable and
consistent with the https version of Agent.getName().
@julianduque
Copy link
Contributor

LGTM

@Trott
Copy link
Member

Trott commented Sep 11, 2015

LGTM.

Looking forward to ES6 destructuring and default parameters so we can get rid of stuff like this entirely.

@mscdex mscdex added the http Issues or PRs related to the http subsystem. label Sep 11, 2015
@ahoym
Copy link
Contributor Author

ahoym commented Sep 15, 2015

Looking forward to ES6 destructuring and default parameters so we can get rid of stuff like this entirely.

Looking forward to ES6 in general! I imagine there'd be a lot more cleanup to do when that happens.

@Trott
Copy link
Member

Trott commented Sep 15, 2015

@Trott
Copy link
Member

Trott commented Sep 15, 2015

Landed in 7d79412

@Trott Trott closed this Sep 15, 2015
Trott pushed a commit that referenced this pull request Sep 15, 2015
Refactor out the if/else statement checking for option.host.
Add whitespace to make concatenation chunks more readable and
consistent with the https version of Agent.getName().

PR-URL: #2825
Reviewed-By: Julian Duque <julianduquej@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@ahoym ahoym deleted the cleanup-agent.getName branch September 16, 2015 00:08
Fishrock123 pushed a commit that referenced this pull request Sep 16, 2015
Refactor out the if/else statement checking for option.host.
Add whitespace to make concatenation chunks more readable and
consistent with the https version of Agent.getName().

PR-URL: #2825
Reviewed-By: Julian Duque <julianduquej@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@Fishrock123 Fishrock123 mentioned this pull request Sep 16, 2015
7 tasks
@rvagg rvagg mentioned this pull request Sep 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants