GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: don't store one-use strings in variable by maclover7 · Pull Request #21876 · nodejs/node

Conversation

@maclover7

@maclover7 maclover7 commented Jul 19, 2018

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot

nodejs-github-bot commented Jul 19, 2018

Copy link
Copy Markdown
Collaborator

@maclover7 build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/311/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

devsnek
devsnek approved these changes Jul 19, 2018
View reviewed changes
addaleax
addaleax approved these changes Jul 19, 2018
View reviewed changes
@addaleax addaleax added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs involving general changes in the lib/ or src/ directories. labels Jul 19, 2018
@addaleax

addaleax commented Jul 19, 2018

Copy link
Copy Markdown
Member

@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 :)

targos and maclover7 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

trivikr
trivikr approved these changes Jul 19, 2018
View reviewed changes
JungMinu
JungMinu approved these changes Jul 19, 2018
View reviewed changes
jasnell
jasnell approved these changes Jul 19, 2018
View reviewed changes
@maclover7
src: don't store one-use strings in variable
801ee85
Move strings that are used only once to their call-sites, don't store
in a variable.
@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

maclover7 commented Jul 19, 2018

Copy link
Copy Markdown
Contributor Author

Full CI: https://ci.nodejs.org/job/node-test-pull-request/15949/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TimothyGu
TimothyGu approved these changes Jul 19, 2018
View reviewed changes
cjihrig
cjihrig approved these changes Jul 19, 2018
View reviewed changes
@maclover7 maclover7 added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jul 20, 2018
@maclover7

maclover7 commented Jul 22, 2018

Copy link
Copy Markdown
Contributor Author

Landed in de8a8d0

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maclover7 maclover7 closed this Jul 22, 2018
@maclover7
maclover7 deleted the jm-mv-str branch July 22, 2018 13:49
maclover7 added a commit that referenced this pull request Jul 22, 2018
@maclover7
src: don't store one-use strings in variable
de8a8d0
Move strings that are used only once to their call-sites, don't store
in a variable.

PR-URL: #21876
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@maclover7
maclover7 restored the jm-mv-str branch July 22, 2018 15:42
@maclover7 maclover7 reopened this Jul 22, 2018
@maclover7 maclover7 closed this Jul 22, 2018
@maclover7
maclover7 deleted the jm-mv-str branch July 22, 2018 15:42
targos pushed a commit that referenced this pull request Jul 24, 2018
@maclover7 @targos
src: don't store one-use strings in variable
be75795
Move strings that are used only once to their call-sites, don't store
in a variable.

PR-URL: #21876
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@targos targos mentioned this pull request Jul 31, 2018
v10.8.0 proposal #22040
Merged
This was referenced Aug 1, 2018
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-nodejs#212
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#223
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#224
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#225
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#226
Closed
@beevelop beevelop mentioned this pull request Aug 2, 2018
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#227
Closed
This was referenced Jun 18, 2021
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 ron-a20/node#34
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 aliceUnhinged613/node#26
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 2.19.25 meghasfdc/node#36
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 2.19.25 kissofire/node#36
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 137717unity/node#27
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@addaleax addaleax addaleax approved these changes
@cjihrig cjihrig cjihrig approved these changes
@JungMinu JungMinu JungMinu approved these changes
@trivikr trivikr trivikr approved these changes
+2 more reviewers
@TimothyGu TimothyGu TimothyGu approved these changes
@devsnek devsnek devsnek approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs involving general changes in the lib/ or src/ directories.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@maclover7 @nodejs-github-bot @addaleax @jasnell @TimothyGu @cjihrig @JungMinu @devsnek @trivikr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.