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

switch lib/readline.js to arrow functions #24602

Conversation

dominikeinkemmer
Copy link
Contributor

Refs: nodejsjp#1

fix function declarations to arrow functions inside of lib/readline.js where possible

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

@nodejs-github-bot nodejs-github-bot added the readline Issues and PRs related to the built-in readline module. label Nov 24, 2018
@ronkorving ronkorving added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Nov 24, 2018
@dominikeinkemmer dominikeinkemmer force-pushed the convert-to-arrow-function-readline branch 2 times, most recently from 5a6f317 to 2cbb262 Compare November 24, 2018 07:44
@gireeshpunathil
Copy link
Member

@gireeshpunathil gireeshpunathil added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 25, 2018
@gireeshpunathil
Copy link
Member

gireeshpunathil commented Nov 25, 2018

fast-track? pls 👍
edit: api code; no fast-tracking

@dominikeinkemmer dominikeinkemmer force-pushed the convert-to-arrow-function-readline branch from 2cbb262 to f0a4db3 Compare November 26, 2018 02:55
fix function declarations to arrow functions inside of lib/readline.js where possible
@dominikeinkemmer dominikeinkemmer force-pushed the convert-to-arrow-function-readline branch from f0a4db3 to 2e93231 Compare November 26, 2018 03:33
@dominikeinkemmer
Copy link
Contributor Author

Hey guys, travis-ci keeps saying the first line of my commit message doesn't follow the guidelines, but I don't understand what is wrong about it, can someone check and let me know? 🙇

@gireeshpunathil
Copy link
Member

here is your commit message:

    lib: convert lib/readline.js to arrow functions
    
    fix function declarations to arrow functions inside of lib/readline.js where possible

error with that is, the second line exceeds 72 characters: https://travis-ci.com/nodejs/node/jobs/160709756#L712

ref: https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#commit-message-guidelines

you could either:

  • git rebase -i and reword that opens up the editor for amending the commit or
  • leave it as it is for folks who land this to fix it.

@Trott
Copy link
Member

Trott commented Nov 27, 2018

Hey guys, travis-ci keeps saying the first line of my commit message doesn't follow the guidelines

Oooh, I never noticed that the line listing is 0-indexed. So line 1 is the second line. IMO that's a bug in core-validate-commit that we should fix.

I'll fix the commit message while landing.

@Trott
Copy link
Member

Trott commented Nov 27, 2018

I'll fix the commit message while landing.

Oops, no I won't because commits have been pushed since last CI, so CI needs to run again. If you want to fix it yourself, that would be awesome. In the meantime, the landing process is stalled until CI becomes available again (which should be in a few hours).

@Trott
Copy link
Member

Trott commented Nov 27, 2018

It looks like you already have a good contribution in the Node.js condebase and this is kind of a neutral change. Honestly, I wonder if we should close it? Especially since it's in lib, not sure churn is helpful?

@Trott Trott removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 28, 2018
@Trott
Copy link
Member

Trott commented Nov 28, 2018

@Trott
Copy link
Member

Trott commented Nov 28, 2018

I'm going to close this. I can't bring myself to land it because it doesn't seem to improve the code base to me. I don't like to do that to new contributors, but you do have a commit that landed, so 🎉. And if some other Collaborator feels strongly that this should land, please feel free to disregard my opinion on this, re-open, and land.

@dominikeinkemmer Thanks for the PR! 🎉

(If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.)

@Trott Trott closed this Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. readline Issues and PRs related to the built-in readline module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants