remove temporary variable

print-window-tiddler
Mario Pietsch 2015-02-17 01:29:42 +01:00
rodzic 95d7a826f0
commit e1b57bf9e5
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -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;
};