Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 57937e5

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
tools: remove unused trailing function arguments
Update tools/doc/html.js and tools/eslint-rules/crypto-check.js to remove unused trailing function arguments in preparation for enabling a lint rule to enforce that practice. PR-URL: #16953 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent c3c9a8d commit 57937e5
Copy full SHA for 57937e5

File tree

Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎tools/doc/html.js‎

Copy file name to clipboardExpand all lines: tools/doc/html.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function altDocs(filename) {
224224
const host = 'https://nodejs.org';
225225
const href = (v) => `${host}/docs/latest-v${v.num}/api/${filename}.html`;
226226

227-
function li(v, i) {
227+
function li(v) {
228228
let html = `<li><a href="${href(v)}">${v.num}`;
229229

230230
if (v.lts)
Collapse file

‎tools/eslint-rules/crypto-check.js‎

Copy file name to clipboardExpand all lines: tools/eslint-rules/crypto-check.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = function(context) {
5454
}
5555
}
5656

57-
function reportIfMissingCheck(node) {
57+
function reportIfMissingCheck() {
5858
if (hasSkipCall) {
5959
return;
6060
}
Collapse file

‎tools/eslint-rules/inspector-check.js‎

Copy file name to clipboardExpand all lines: tools/eslint-rules/inspector-check.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function(context) {
2929
}
3030
}
3131

32-
function reportIfMissing(context, node) {
32+
function reportIfMissing(context) {
3333
if (!hasInspectorCheck) {
3434
missingCheckNodes.forEach((node) => {
3535
context.report(node, msg);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.