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: https://github.com/nodejs/node/pull/7594 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
This commit is contained in:
parent
fa46e503b5
commit
e44b438777
@ -17,13 +17,6 @@ let id = 0;
|
||||
// Just to make sure that all examples will be processed
|
||||
tokens.push({ type: 'heading' });
|
||||
|
||||
var oldDirs = fs.readdirSync(verifyDir);
|
||||
oldDirs = oldDirs.filter(function(dir) {
|
||||
return /^\d{2}_/.test(dir);
|
||||
}).map(function(dir) {
|
||||
return path.resolve(verifyDir, dir);
|
||||
});
|
||||
|
||||
for (var i = 0; i < tokens.length; i++) {
|
||||
var token = tokens[i];
|
||||
if (token.type === 'heading' && token.text) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user