removed an unused hack in utils.js

v1.18.x
psychobunny 11 years ago
parent 1dc63caf77
commit f73fd1eeae

@ -28,9 +28,7 @@
//Adapted from http://stackoverflow.com/questions/5827612/node-js-fs-readdir-recursive-directory-search
walk: function(dir, done) {
var results = [],
path = require('path'),
main_dir = path.join(__dirname, '..', 'templates');
var results = [];
fs.readdir(dir, function(err, list) {
if (err) {
@ -51,7 +49,7 @@
}
});
} else {
results.push(file.replace(main_dir + '/', '').replace('.tpl', ''));
results.push(file);
if (!--pending) {
done(null, results);
}

Loading…
Cancel
Save