Skip to content

Commit 57937e5

Browse 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 <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent c3c9a8d commit 57937e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/doc/html.js

+1-1
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)

tools/eslint-rules/crypto-check.js

+1-1
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
}

tools/eslint-rules/inspector-check.js

+1-1
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)