From e1b57bf9e5ac3f82bbbb4b29d1ff66bff6e5316c Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Tue, 17 Feb 2015 01:29:42 +0100 Subject: [PATCH] remove temporary variable --- boot/boot.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index 79510a311..dee777c54 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1544,15 +1544,13 @@ Returns an array of search paths */ $tw.getLibraryItemSearchPaths = function(libraryPath,envVar) { var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)], - env = process.env[envVar], - paths = []; + env = process.env[envVar]; if(env) { env.split(path.delimiter).map(function(item) { if(item) { - paths.push(item) + pluginPaths.push(item) } }); - Array.prototype.push.apply(pluginPaths,paths); } return pluginPaths; };