diff options
author | Rich Trott <rtrott@gmail.com> | 2017-11-09 17:27:12 +0300 |
---|---|---|
committer | Myles Borins <myles.borins@gmail.com> | 2017-11-17 19:23:31 +0300 |
commit | 57937e5746fc77bae74cb2057c4336d850710821 (patch) | |
tree | bea15460dc09e36d4cfce5717d0d9ce571f0404e /tools | |
parent | c3c9a8d4bf356498a8ae2364e87a5079acac3bf4 (diff) |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/html.js | 2 | ||||
-rw-r--r-- | tools/eslint-rules/crypto-check.js | 2 | ||||
-rw-r--r-- | tools/eslint-rules/inspector-check.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/doc/html.js b/tools/doc/html.js index 5534dd03b74..e2519259959 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -224,7 +224,7 @@ function altDocs(filename) { const host = 'https://nodejs.org'; const href = (v) => `${host}/docs/latest-v${v.num}/api/${filename}.html`; - function li(v, i) { + function li(v) { let html = `<li><a href="${href(v)}">${v.num}`; if (v.lts) diff --git a/tools/eslint-rules/crypto-check.js b/tools/eslint-rules/crypto-check.js index b1b2a03f50e..9d24d3355dc 100644 --- a/tools/eslint-rules/crypto-check.js +++ b/tools/eslint-rules/crypto-check.js @@ -54,7 +54,7 @@ module.exports = function(context) { } } - function reportIfMissingCheck(node) { + function reportIfMissingCheck() { if (hasSkipCall) { return; } diff --git a/tools/eslint-rules/inspector-check.js b/tools/eslint-rules/inspector-check.js index e65dd17d768..bb40a981832 100644 --- a/tools/eslint-rules/inspector-check.js +++ b/tools/eslint-rules/inspector-check.js @@ -29,7 +29,7 @@ module.exports = function(context) { } } - function reportIfMissing(context, node) { + function reportIfMissing(context) { if (!hasInspectorCheck) { missingCheckNodes.forEach((node) => { context.report(node, msg); |