Skip to content

Commit e9b06f3

Browse files
committed
Resolve no-undef lint in build.js
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)
1 parent a50b483 commit e9b06f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const dirs = ['build'];
3939
while (dirs.length) {
4040
const dir = dirs.pop();
4141
fs.readdirSync(dir).forEach((entry) => {
42-
path = dir + '/' + entry;
42+
const path = dir + '/' + entry;
4343
const stat = fs.statSync(path);
4444
if (stat.isDirectory()) {
4545
dirs.push(path);

0 commit comments

Comments
 (0)