mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +00:00
remove temporary variable
This commit is contained in:
parent
95d7a826f0
commit
e1b57bf9e5
@ -1544,15 +1544,13 @@ Returns an array of search paths
|
|||||||
*/
|
*/
|
||||||
$tw.getLibraryItemSearchPaths = function(libraryPath,envVar) {
|
$tw.getLibraryItemSearchPaths = function(libraryPath,envVar) {
|
||||||
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
|
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
|
||||||
env = process.env[envVar],
|
env = process.env[envVar];
|
||||||
paths = [];
|
|
||||||
if(env) {
|
if(env) {
|
||||||
env.split(path.delimiter).map(function(item) {
|
env.split(path.delimiter).map(function(item) {
|
||||||
if(item) {
|
if(item) {
|
||||||
paths.push(item)
|
pluginPaths.push(item)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Array.prototype.push.apply(pluginPaths,paths);
|
|
||||||
}
|
}
|
||||||
return pluginPaths;
|
return pluginPaths;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user