Skip to content

lib: Replacing the string concatenation with string template - #16933

Closed
narkedi wants to merge 3 commits into
nodejs:masterfrom
narkedi:master
Closed

lib: Replacing the string concatenation with string template#16933
narkedi wants to merge 3 commits into
nodejs:masterfrom
narkedi:master

Conversation

@narkedi

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)
lib

@nodejs-github-botnodejs-github-bot added the fs Issues and PRs related to the fs subsystem / file system. label Nov 10, 2017
@gireeshpunathilgireeshpunathil added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Nov 10, 2017
@narkedi

Copy link
Copy Markdown
ContributorAuthor

Pushed a new commit to address the 80 character limit.

@apapirovskiapapirovski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for working on this @narkedi! Just a small change request below.

Comment threadlib/fs.js Outdated
backtrace.stack = err.name + ': ' + err.message +
backtrace.stack.substr(backtrace.name.length);
backtrace.stack = `${err.name}: ${err.message}` +
`${backtrace.stack.substr(`${backtrace.name.length}`)}`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like this second line could be left as it was. Just the first line needs to be a template literal.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks for the review comments @apapirovski . Have made the necessary changes and did a fresh commit.

@cjihrigcjihrig left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with nit addressed.

@gireeshpunathil

Copy link
Copy Markdown
Member

gireeshpunathil pushed a commit that referenced this pull request Nov 13, 2017
PR-URL: #16933
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@gireeshpunathil

Copy link
Copy Markdown
Member

Landed in 107e8a9 , thanks!

evanlucas pushed a commit that referenced this pull request Nov 13, 2017
PR-URL: #16933
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@evanlucasevanlucas mentioned this pull request Nov 13, 2017
MylesBorins pushed a commit that referenced this pull request Nov 17, 2017
PR-URL: #16933
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@gibfahngibfahn mentioned this pull request Nov 21, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learnIssues related to the Code-and-Learn events and PRs submitted during the events.fsIssues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@narkedi@gireeshpunathil@apapirovski@fhinkel@jasnell@cjihrig@MylesBorins@nodejs-github-bot