★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/21876Nouvelle recherche | Portail wanayoo
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

src: don't store one-use strings in variable #21876

Closed
wants to merge 1 commit into from

Conversation

@maclover7
Copy link
Member

maclover7 commented Jul 19, 2018

Move strings that are used only once to their call-sites, don't store
in a variable. What most other places in src/cares_wrap.cc do, as well as other files in src.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
@addaleax

This comment has been minimized.

Copy link
Member

addaleax commented Jul 19, 2018

@maclover7 I’d also label this with src as the subsystem, btw. The main purpose of adding those to commit messages is to make changes to certain subsystems easier to spot in changelogs, but this does not actually change the behaviour of the dns module :)

src: don't store one-use strings in variable
Move strings that are used only once to their call-sites, don't store
in a variable.

@maclover7 maclover7 force-pushed the maclover7:jm-mv-str branch from 6d09116 to 801ee85 Jul 19, 2018

@maclover7 maclover7 changed the title dns: don't store one-use strings in variable src: don't store one-use strings in variable Jul 19, 2018

@maclover7

This comment has been minimized.

Copy link
Member Author

maclover7 commented Jul 19, 2018

@maclover7

This comment has been minimized.

Copy link
Member Author

maclover7 commented Jul 22, 2018

Landed in de8a8d0

@maclover7 maclover7 closed this Jul 22, 2018

@maclover7 maclover7 deleted the maclover7:jm-mv-str branch Jul 22, 2018

maclover7 added a commit that referenced this pull request Jul 22, 2018

src: don't store one-use strings in variable
Move strings that are used only once to their call-sites, don't store
in a variable.

PR-URL: #21876
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

@maclover7 maclover7 restored the maclover7:jm-mv-str branch Jul 22, 2018

@maclover7 maclover7 reopened this Jul 22, 2018

@maclover7 maclover7 closed this Jul 22, 2018

@maclover7 maclover7 deleted the maclover7:jm-mv-str branch Jul 22, 2018

targos added a commit that referenced this pull request Jul 24, 2018

src: don't store one-use strings in variable
Move strings that are used only once to their call-sites, don't store
in a variable.

PR-URL: #21876
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

@targos targos referenced this pull request Jul 31, 2018

Merged

v10.8.0 proposal #22040

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.