mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-30 04:55:54 +08:00 
			
		
		
		
	.
This commit is contained in:
		
							
								
								
									
										7
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -8464,15 +8464,16 @@ function downloadFile(url, fileStream) { | ||||
|                     response.resume(); // Consume response data to free up memory | ||||
|                     return; | ||||
|                 } | ||||
|                 response.on('data', chunk => { | ||||
|                     fileStream.write(chunk); | ||||
|                 }); | ||||
|                 // response.on('data', chunk => { | ||||
|                 //   fileStream.write(chunk) | ||||
|                 // }) | ||||
|                 response.on('end', () => { | ||||
|                     resolve(); | ||||
|                 }); | ||||
|                 response.on('error', err => { | ||||
|                     reject(err); | ||||
|                 }); | ||||
|                 response.pipe(fileStream); | ||||
|             }); | ||||
|         } | ||||
|         catch (err) { | ||||
|   | ||||
| @@ -142,15 +142,16 @@ function downloadFile(url: string, fileStream: WriteStream): Promise<void> { | ||||
|           return | ||||
|         } | ||||
|  | ||||
|         response.on('data', chunk => { | ||||
|           fileStream.write(chunk) | ||||
|         }) | ||||
|         // response.on('data', chunk => { | ||||
|         //   fileStream.write(chunk) | ||||
|         // }) | ||||
|         response.on('end', () => { | ||||
|           resolve() | ||||
|         }) | ||||
|         response.on('error', err => { | ||||
|           reject(err) | ||||
|         }) | ||||
|         response.pipe(fileStream) | ||||
|       }) | ||||
|     } catch (err) { | ||||
|       reject(err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user