Cleanup from code coverage report

This commit is contained in:
kpdecker
2014-08-23 17:44:45 -05:00
parent 84d646bb5d
commit cde008b49f
5 changed files with 43 additions and 16 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ module.exports.cli = function(opts) {
output.push(opts.namespace);
output.push(' || {};\n');
}
function processTemplate(template, root, explicit) {
function processTemplate(template, root) {
var path = template,
stat = fs.statSync(path);
if (stat.isDirectory()) {
@@ -71,7 +71,7 @@ module.exports.cli = function(opts) {
processTemplate(path, root || template);
}
});
} else if (explicit || extension.test(path)) {
} else {
var data = fs.readFileSync(path, 'utf8');
if (opts.bom && data.indexOf('\uFEFF') === 0) {
@@ -112,7 +112,7 @@ module.exports.cli = function(opts) {
}
opts.templates.forEach(function(template) {
processTemplate(template, opts.root, true);
processTemplate(template, opts.root);
});
// Output the content