summaryrefslogtreecommitdiffstats
path: root/lib/precompiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-23 17:44:45 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-23 17:44:45 -0500
commitcde008b49f3cc64711a23c107fa53ad612954aef (patch)
tree0980f61500f3a54a0a27cde09cd092a09e936788 /lib/precompiler.js
parent84d646bb5d5a8bb01bfb9465ee1078161f069742 (diff)
downloadhandlebars.js-cde008b49f3cc64711a23c107fa53ad612954aef.zip
handlebars.js-cde008b49f3cc64711a23c107fa53ad612954aef.tar.gz
handlebars.js-cde008b49f3cc64711a23c107fa53ad612954aef.tar.bz2
Cleanup from code coverage report
Diffstat (limited to 'lib/precompiler.js')
-rw-r--r--lib/precompiler.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/precompiler.js b/lib/precompiler.js
index bae923c..6764022 100644
--- a/lib/precompiler.js
+++ b/lib/precompiler.js
@@ -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