Code cleanup
This commit is contained in:
parent
85e84a0a3f
commit
863a196262
|
@ -188,14 +188,12 @@
|
|||
}
|
||||
|
||||
if( !shouldExclude ) {
|
||||
|
||||
console.log(me._wcurpath);
|
||||
try {
|
||||
files = fs.readdirSync(me._wcurpath);
|
||||
} catch(e) {
|
||||
err = e;
|
||||
}
|
||||
} else console.log("excluding: " + me._wcurpath)
|
||||
}
|
||||
|
||||
me._wReaddirHandler(err, files);
|
||||
};
|
||||
|
@ -206,7 +204,6 @@
|
|||
// Stop directories that contain filter keywords
|
||||
// from continuing through the walk process
|
||||
if (me._wfilters != undefined) {
|
||||
var shouldExclude = false;
|
||||
for (var iFilter=0; iFilter<me._wfilters.length; ++iFilter) {
|
||||
if (me._wcurpath.indexOf(me._wfilters[iFilter]) != -1 ) {
|
||||
me._wNext();
|
||||
|
|
Loading…
Reference in New Issue