mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +00:00 
			
		
		
		
	remove temporary variable
This commit is contained in:
		| @@ -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; | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mario Pietsch
					Mario Pietsch