Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Commit

Permalink
Small rewrite of bem make test utility
Browse files Browse the repository at this point in the history
  • Loading branch information
arikon committed Jul 18, 2013
1 parent b0e7f61 commit fa8cf53
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions test/bem-make.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,14 @@ function collectTimestamps(root) {
var list = {};

return QFS.listTree(root, function(path, stat) {
return PATH.basename(path)[0] !== '.' &&
Q.when(stat.isFile(), function(isFile) {
if (isFile) {
return QFS.lastModified(path)
.then(function(modified) {
list[path] = modified;
return true;
});
}

return false;
});
if (PATH.basename(path)[0] !== '.' && stat.isFile()) {
return QFS.lastModified(path)
.then(function(modified) {
list[path] = modified;
return true;
});
}
return false;
})
.then(function() {
return list;
Expand Down

0 comments on commit fa8cf53

Please sign in to comment.