File tree 1 file changed +2
-2
lines changed
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) {
119
119
function isReadable ( stream ) {
120
120
if ( stream && stream [ kIsReadable ] != null ) return stream [ kIsReadable ] ;
121
121
const r = isReadableNodeStream ( stream ) ;
122
- if ( r === null || typeof stream ?. readable !== 'boolean' ) return null ;
122
+ if ( typeof stream ?. readable !== 'boolean' ) return null ;
123
123
if ( isDestroyed ( stream ) ) return false ;
124
124
return r && stream . readable && ! isReadableFinished ( stream ) ;
125
125
}
126
126
127
127
function isWritable ( stream ) {
128
128
const r = isWritableNodeStream ( stream ) ;
129
- if ( r === null || typeof stream ?. writable !== 'boolean' ) return null ;
129
+ if ( typeof stream ?. writable !== 'boolean' ) return null ;
130
130
if ( isDestroyed ( stream ) ) return false ;
131
131
return r && stream . writable && ! isWritableEnded ( stream ) ;
132
132
}
You can’t perform that action at this time.
0 commit comments