Fix: Unexpected use of continue statement.
Signed-off-by: tzhtaylor <12352549+tzhtaylor@user.noreply.gitee.com>
This commit is contained in:
parent
f6defe8180
commit
5cf1d2f45e
|
@ -128,11 +128,11 @@ class BasicGenerator extends Generator {
|
||||||
if (fs.existsSync(fullpath)) {
|
if (fs.existsSync(fullpath)) {
|
||||||
this.traverseDirCapture(fullpath, dirCallback, fileCallback);
|
this.traverseDirCapture(fullpath, dirCallback, fileCallback);
|
||||||
}
|
}
|
||||||
continue;
|
} else {
|
||||||
}
|
|
||||||
fileCallback(fullpath);
|
fileCallback(fullpath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
traverseDirBubble(dir, dirCallback, fileCallback) {
|
traverseDirBubble(dir, dirCallback, fileCallback) {
|
||||||
for (const filename of fs.readdirSync(dir)) {
|
for (const filename of fs.readdirSync(dir)) {
|
||||||
|
|
Loading…
Reference in New Issue