| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e8538c3 commit 51d86fe
1 file 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 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments