Skip to content

[v19.x] lib: fix eslint early return - #45409

Closed
RafaelGSS wants to merge 1 commit into
nodejs:v19.x-stagingfrom
RafaelGSS:fix-eslint-return-early
Closed

[v19.x] lib: fix eslint early return#45409
RafaelGSS wants to merge 1 commit into
nodejs:v19.x-stagingfrom
RafaelGSS:fix-eslint-return-early

Conversation

@RafaelGSS

Copy link
Copy Markdown
Member

The #45243 updated eslint, and apparently when you specify a @returns early returns aren't considered valid. This PR fixes this lint issue.

In the main branch it's not failing because #41276 fixes it indirectly.

FYI @Trott

cc: @nodejs/releasers this probably needs to be backported/cherry-picked to all active release lines.

The nodejs#45243 upgraded eslint
and apparently, when you specific a `@returns` early returns
aren't considered valid. This PR fixes this lint issue.
@nodejs-github-botnodejs-github-bot added events Issues and PRs related to the events subsystem / EventEmitter. needs-ci PRs that need a full CI run. v19.x labels Nov 10, 2022
@RafaelGSS

Copy link
Copy Markdown
MemberAuthor

I'm requesting fast-track because I need to include it on #45269.

@RafaelGSSRafaelGSS added the fast-track PRs that do not need to wait for 48 hours to land. label Nov 10, 2022
@github-actions

Copy link
Copy Markdown
Contributor

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

@RafaelGSS

Copy link
Copy Markdown
MemberAuthor

Do I need CI for this PR?

@RafaelGSSRafaelGSS added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 10, 2022
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 10, 2022
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@BethGriggsBethGriggs added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Nov 11, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@RafaelGSS

Copy link
Copy Markdown
MemberAuthor

The Windows issue is a known problem at the moment, and considering the fact we need this patch for #45269 and a new CI will run for the proposal, I'll land it anyway.

RafaelGSS added a commit that referenced this pull request Nov 11, 2022
The #45243 upgraded eslint
and apparently, when you specific a `@returns` early returns
aren't considered valid. This PR fixes this lint issue.
PR-URL: #45409
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
@RafaelGSS

Copy link
Copy Markdown
MemberAuthor

Landed in e2181e0

@RafaelGSS

Copy link
Copy Markdown
MemberAuthor

Ref: nodejs/build#3075

danielleadams pushed a commit that referenced this pull request Dec 30, 2022
The #45243 upgraded eslint
and apparently, when you specific a `@returns` early returns
aren't considered valid. This PR fixes this lint issue.
PR-URL: #45409
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 3, 2023
The #45243 upgraded eslint
and apparently, when you specific a `@returns` early returns
aren't considered valid. This PR fixes this lint issue.
PR-URL: #45409
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eventsIssues and PRs related to the events subsystem / EventEmitter.fast-trackPRs that do not need to wait for 48 hours to land.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@RafaelGSS@nodejs-github-bot@ruyadorno@panva@lpinca@BethGriggs