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

doc: fix node-api call example by legendecas · Pull Request #49395 · nodejs/node · GitHub

/ node Public

doc: fix node-api call example - #49395

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
legendecas:node-api/doc-napi-call
Aug 31, 2023
Merged

doc: fix node-api call example#49395
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
legendecas:node-api/doc-napi-call

Conversation

Copy link
Copy Markdown
Member

The return statement should not be enclosed in a nested conditional
branch.

Also, the NAPI_CALL macro is renamed to NODE_API_CALL in aligning
with the n-api to node-api transition.

Fixes #49311

The `return` statement should not be enclosed in a nested conditional
branch.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/node-api

nodejs-github-bot added doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API. labels Aug 28, 2023
daeyeon added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Aug 29, 2023

mhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

legendecas added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 31, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 31, 2023
nodejs-github-bot merged commit f9a182c into nodejs:main Aug 31, 2023

Copy link
Copy Markdown
Collaborator

Landed in f9a182c

legendecas deleted the node-api/doc-napi-call branch September 5, 2023 15:58
UlisesGascon pushed a commit that referenced this pull request Sep 10, 2023
The `return` statement should not be enclosed in a nested conditional
branch.

PR-URL: #49395
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
UlisesGascon mentioned this pull request Sep 10, 2023
targos pushed a commit that referenced this pull request Nov 27, 2023
The `return` statement should not be enclosed in a nested conditional
branch.

PR-URL: #49395
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
sercher added a commit to sercher/graaljs that referenced this pull request Apr 25, 2024
The `return` statement should not be enclosed in a nested conditional
branch.

PR-URL: nodejs/node#49395
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
sercher added a commit to sercher/graaljs that referenced this pull request Apr 25, 2024
The `return` statement should not be enclosed in a nested conditional
branch.

PR-URL: nodejs/node#49395
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
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. doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misplaced return in NAPI_CALL example?

8 participants


Back | FazBrowse Home | New Git URL