mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 22:58:41 +08:00 
			
		
		
		
	Remove unnecessary error check on downloadarchive
This commit is contained in:
		
							parent
							
								
									d2dd12978c
								
							
						
					
					
						commit
						9355fc0a70
					
				| 
						 | 
					@ -134,11 +134,6 @@ async function downloadArchive(
 | 
				
			||||||
    repo: repo,
 | 
					    repo: repo,
 | 
				
			||||||
    ref: commit || ref
 | 
					    ref: commit || ref
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
  if (response.status != 200) {
 | 
					 | 
				
			||||||
    throw new Error(
 | 
					 | 
				
			||||||
      `Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}`
 | 
					 | 
				
			||||||
    )
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return Buffer.from(response.data as ArrayBuffer) // response.data is ArrayBuffer
 | 
					  return Buffer.from(response.data as ArrayBuffer) // response.data is ArrayBuffer
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user