refactor(size) processDir

This commit is contained in:
coderaiser 2014-11-19 07:13:06 -05:00
parent 0d2c2cb99f
commit c96a57c310

View file

@ -82,12 +82,10 @@
--fileCounter;
if (!wasError || !stopOnError) {
if (error) {
if (stopOnError) {
wasError = true;
emitter.emmit('error', error);
}
} else {
if (error && stopOnError) {
wasError = true;
emitter.emmit('error', error);
} else if (!error) {
isDir = stat.isDirectory();
if (!isDir)