From f73fd1eeae658a6d0f35acbf10a2cbbe7984e03a Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 4 Mar 2014 17:08:15 -0500 Subject: [PATCH] removed an unused hack in utils.js --- public/src/utils.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/src/utils.js b/public/src/utils.js index 1ebd7e475b..c37479547d 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -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); }