FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tools: use arrow function for callback in lint-sh.js by Trott · Pull Request #41256 · nodejs/node · GitHub

/ node Public

tools: use arrow function for callback in lint-sh.js - #41256

Merged
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
Trott:lint-sh
Dec 22, 2021
Merged

tools: use arrow function for callback in lint-sh.js#41256
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
Trott:lint-sh

Conversation

Trott commented Dec 21, 2021

Copy link
Copy Markdown
Member

The function declaration inside an else block is odd (and violates a
recommended ESLint rule). We tend to use arrow functions for callbacks
anyway, so switch to that.

The function declaration inside an else block is odd (and violates a
recommended ESLint rule). We tend to use arrow functions for callbacks
anyway, so switch to that.
nodejs-github-bot added the tools Issues and PRs related to the tools directory. label Dec 21, 2021
Trott added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Dec 21, 2021
jasnell added the fast-track PRs that do not need to wait for 48 hours to land. label Dec 21, 2021

Copy link
Copy Markdown
Contributor

Fast-track has been requested by @jasnell. Please 👍 to approve.

aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 22, 2021
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 22, 2021
nodejs-github-bot merged commit 27c6fdf into nodejs:master Dec 22, 2021

Copy link
Copy Markdown
Collaborator

Landed in 27c6fdf

Trott deleted the lint-sh branch December 22, 2021 14:17
targos pushed a commit that referenced this pull request Jan 14, 2022
The function declaration inside an else block is odd (and violates a
recommended ESLint rule). We tend to use arrow functions for callbacks
anyway, so switch to that.

PR-URL: #41256
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 31, 2022
The function declaration inside an else block is odd (and violates a
recommended ESLint rule). We tend to use arrow functions for callbacks
anyway, so switch to that.

PR-URL: #41256
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Feb 1, 2022
The function declaration inside an else block is odd (and violates a
recommended ESLint rule). We tend to use arrow functions for callbacks
anyway, so switch to that.

PR-URL: #41256
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams mentioned this pull request Feb 1, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. fast-track PRs that do not need to wait for 48 hours to land. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL