Skip to content

Commit

Permalink
Resolve no-undef lint in build.js
Browse files Browse the repository at this point in the history
book/build.js
   42:5   error  'path' is not defined  no-undef
   43:30  error  'path' is not defined  no-undef
   45:17  error  'path' is not defined  no-undef
   49:10  error  'path' is not defined  no-undef
   53:35  error  'path' is not defined  no-undef
  118:54  error  'path' is not defined  no-undef
  123:22  error  'path' is not defined  no-undef

✖ 7 problems (7 errors, 0 warnings)
  • Loading branch information
dtolnay committed Jan 25, 2025
1 parent a50b483 commit e9b06f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const dirs = ['build'];
while (dirs.length) {
const dir = dirs.pop();
fs.readdirSync(dir).forEach((entry) => {
path = dir + '/' + entry;
const path = dir + '/' + entry;
const stat = fs.statSync(path);
if (stat.isDirectory()) {
dirs.push(path);
Expand Down

0 comments on commit e9b06f3

Please sign in to comment.