Skip to content

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

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-botnodejs-github-bot added the tools Issues and PRs related to the tools directory. label Dec 21, 2021
@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 21, 2021
@jasnelljasnell added the fast-track PRs that do not need to wait for 48 hours to land. label Dec 21, 2021
@github-actions

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Collaborator

Landed in 27c6fdf

@Trott
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>
@targostargos mentioned this pull request Jan 16, 2022
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>
@danielleadamsdanielleadams mentioned this pull request Feb 1, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.fast-trackPRs that do not need to wait for 48 hours to land.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Trott@nodejs-github-bot@jasnell@cjihrig@aduh95