mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
removed an unused hack in utils.js
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user