Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
Trott committed Nov 11, 2017
commit bd4a5155a39956b6c232b38bb9c915b9381d6be0
2 changes: 1 addition & 1 deletion tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tools/eslint-rules/crypto-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function(context) {
}
}

function reportIfMissingCheck(node) {
function reportIfMissingCheck() {
if (hasSkipCall) {
return;
}
Expand Down