mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Use Array.indexOf() instead of Array.includes()
This commit is contained in:
		
				
					committed by
					
						 HirokiUchikawa
						HirokiUchikawa
					
				
			
			
				
	
			
			
			
						parent
						
							fbe0e2d6eb
						
					
				
				
					commit
					7aced85a31
				
			| @@ -139,7 +139,7 @@ LocalFileSystem.prototype.clean = function(activeNodes){ | ||||
|     var self = this; | ||||
|     return fs.readdir(self.storageBaseDir).then(function(dirs){ | ||||
|         return when.all(dirs.reduce(function(result, item){ | ||||
|             if(item !== "global" && !activeNodes.includes(item)){ | ||||
|             if(item !== "global" && activeNodes.indexOf(item) === -1){ | ||||
|                 result.push(fs.remove(path.join(self.storageBaseDir,item))); | ||||
|                 delete self.storages[item]; | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user