File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import  *  as  path  from  'path' ; 
22import  *  as  os  from  'os' ; 
3- import  {  promises  as  fs  }  from  'fs' 
3+ import  {  promises  as  fs ,   createWriteStream  }  from  'fs' 
44import  {  promisify  }  from  'util' ; 
55
66import  *  as  _  from  'lodash' ; 
@@ -88,9 +88,9 @@ async function insertServer(
8888    const  downloadPath  =  path . join ( buildPath ,  'httptoolkit-server.tar.gz' ) ; 
8989
9090    const  assetDownload  =  await  fetch ( asset . browser_download_url ) ; 
91-     const  assetWrite  =  assetDownload . body . pipe ( fs . createWriteStream ( downloadPath ) ) ; 
91+     const  assetWrite  =  assetDownload . body . pipe ( createWriteStream ( downloadPath ) ) ; 
9292
93-     await  new  Promise ( ( resolve ,  reject )  =>  { 
93+     await  new  Promise < void > ( ( resolve ,  reject )  =>  { 
9494        assetWrite . on ( 'finish' ,  resolve ) ; 
9595        assetWrite . on ( 'error' ,  reject ) ; 
9696    } ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments