Skip to content

Commit 242d6c7

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
tools: remove unused variable
`oldDirs` is assigned but never used. Remove it. (This was missed by the linter in previous versions of ESLint but is flagged by the current version. Updating the linter is contingent on this change or some similar remedy landing.) PR-URL: #7594 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent de5e235 commit 242d6c7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tools/doc/addon-verify.js

-7
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ let id = 0;
1717
// Just to make sure that all examples will be processed
1818
tokens.push({ type: 'heading' });
1919

20-
var oldDirs = fs.readdirSync(verifyDir);
21-
oldDirs = oldDirs.filter(function(dir) {
22-
return /^\d{2}_/.test(dir);
23-
}).map(function(dir) {
24-
return path.resolve(verifyDir, dir);
25-
});
26-
2720
for (var i = 0; i < tokens.length; i++) {
2821
var token = tokens[i];
2922
if (token.type === 'heading' && token.text) {

0 commit comments

Comments
 (0)