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 <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

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎tools/doc/html.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function altDocs(filename) {
224224
consthost='https://nodejs.org';
225225
consthref=(v)=>`${host}/docs/latest-v${v.num}/api/${filename}.html`;
226226

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

230230
if(v.lts)

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

Lines 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-
functionreportIfMissingCheck(node){
57+
functionreportIfMissingCheck(){
5858
if(hasSkipCall){
5959
return;
6060
}

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

Lines 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-
functionreportIfMissing(context,node){
32+
functionreportIfMissing(context){
3333
if(!hasInspectorCheck){
3434
missingCheckNodes.forEach((node)=>{
3535
context.report(node,msg);

0 commit comments

Comments
 (0)