We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54c3658 commit 1a038caCopy full SHA for 1a038ca
1 file changed
lib/csscomb.js
@@ -120,18 +120,17 @@ Comb.prototype = {
120
return vfs.listDir(path).then(function(filenames) {
121
return vow.all(filenames.map(function(filename) {
122
var fullname = path + '/' + filename;
123
- return vfs.stat(fullname).then(function(stat) {
124
- if (_this._shouldProcess(fullname)) {
+ if (_this._shouldProcess(fullname)) {
+ return vfs.stat(fullname).then(function(stat) {
125
if (stat.isDirectory()) {
126
return _this.processDirectory(fullname);
127
} else if (fullname.match(/\.css$/)) {
128
return vow.when(_this.processFile(fullname)).then(function(errors) {
129
if (errors) return errors;
130
});
131
}
132
- }
133
- return;
134
- });
+ });
+ }
135
})).then(function(results) {
136
return [].concat.apply([], results);
137
0 commit comments