!46 Fix: Unexpected use of continue statement.
Merge pull request !46 from Ankor/master
This commit is contained in:
commit
6a21785882
|
@ -140,11 +140,12 @@ class BasicGenerator extends Generator {
|
||||||
if (fs.lstatSync(fullpath).isDirectory()) {
|
if (fs.lstatSync(fullpath).isDirectory()) {
|
||||||
this.traverseDirBubble(fullpath, dirCallback, fileCallback);
|
this.traverseDirBubble(fullpath, dirCallback, fileCallback);
|
||||||
dirCallback(fullpath);
|
dirCallback(fullpath);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
fileCallback(fullpath);
|
fileCallback(fullpath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
emptyDir(dir) {
|
emptyDir(dir) {
|
||||||
if (!fs.existsSync(dir)) {
|
if (!fs.existsSync(dir)) {
|
||||||
|
|
Loading…
Reference in New Issue