Skip to content

Commit

Permalink
tools: remove unused variable
Browse files Browse the repository at this point in the history
`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]>
  • Loading branch information
Trott authored and Myles Borins committed Jul 14, 2016
1 parent de5e235 commit 242d6c7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tools/doc/addon-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 242d6c7

Please sign in to comment.