File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,14 +119,14 @@ function isReadableFinished(stream, strict) {
119119function  isReadable ( stream )  { 
120120  if  ( stream  &&  stream [ kIsReadable ]  !=  null )  return  stream [ kIsReadable ] ; 
121121  const  r  =  isReadableNodeStream ( stream ) ; 
122-   if  ( r   ===   null   ||   typeof  stream ?. readable  !==  'boolean' )  return  null ; 
122+   if  ( typeof  stream ?. readable  !==  'boolean' )  return  null ; 
123123  if  ( isDestroyed ( stream ) )  return  false ; 
124124  return  r  &&  stream . readable  &&  ! isReadableFinished ( stream ) ; 
125125} 
126126
127127function  isWritable ( stream )  { 
128128  const  r  =  isWritableNodeStream ( stream ) ; 
129-   if  ( r   ===   null   ||   typeof  stream ?. writable  !==  'boolean' )  return  null ; 
129+   if  ( typeof  stream ?. writable  !==  'boolean' )  return  null ; 
130130  if  ( isDestroyed ( stream ) )  return  false ; 
131131  return  r  &&  stream . writable  &&  ! isWritableEnded ( stream ) ; 
132132} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments