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 @@ -123,14 +123,14 @@ function isDisturbed(stream) {
123
123
function isReadable ( stream ) {
124
124
if ( stream && stream [ kIsReadable ] != null ) return stream [ kIsReadable ] ;
125
125
const r = isReadableNodeStream ( stream ) ;
126
- if ( r === null || typeof stream ?. readable !== 'boolean' ) return null ;
126
+ if ( typeof stream ?. readable !== 'boolean' ) return null ;
127
127
if ( isDestroyed ( stream ) ) return false ;
128
128
return r && stream . readable && ! isReadableFinished ( stream ) ;
129
129
}
130
130
131
131
function isWritable ( stream ) {
132
132
const r = isWritableNodeStream ( stream ) ;
133
- if ( r === null || typeof stream ?. writable !== 'boolean' ) return null ;
133
+ if ( typeof stream ?. writable !== 'boolean' ) return null ;
134
134
if ( isDestroyed ( stream ) ) return false ;
135
135
return r && stream . writable && ! isWritableEnded ( stream ) ;
136
136
}
You can’t perform that action at this time.
0 commit comments