Fix logic errors

This commit is contained in:
Kegan Myers 2014-08-09 01:48:02 -05:00
parent 93ce360551
commit e25cdeb04f

4
app.js
View file

@ -30,7 +30,7 @@ function installPlugins(callback) {
if (err) throw err;
var loadedPlugins = [];
for (var i = 0; i < pluginsToInstall.length; i++) {
loadedPlugins.push(path.resolve(__dirname, require(pluginsToInstall[i])));
loadedPlugins.push(require(pluginsToInstall[i]));
}
callback(loadedPlugins);
});
@ -40,7 +40,7 @@ function installPlugins(callback) {
function loadPlugins(callback) {
var loadedPlugins = [];
for (var i = 0; i < pluginsToLoad.length; i++) {
pluginsToLoad.push(require(pluginsToLoad[i]));
loadedPlugins.push(require(path.resolve(__dirname, pluginsToLoad[i])));
}
callback(loadedPlugins);
}