mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-12-29 10:04:49 -05:00
Fixed the return type of isReadableStream
Previously, it would return `undefined` instead of `false` when `stream` was undefined.
This commit is contained in:
parent
c35cdf9d6f
commit
814b583fb0
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ export function isStreamableHttpRequestBody(body: unknown): body is Blob | Buffe
|
|||
function isReadableStream(stream: unknown): stream is NodeJS.ReadableStream {
|
||||
const s = stream as NodeJS.ReadableStream;
|
||||
return (
|
||||
s &&
|
||||
!!s &&
|
||||
typeof s.read === "function" &&
|
||||
typeof s.pause === "function" &&
|
||||
typeof s.resume === "function" &&
|
||||
|
|
Loading…
Reference in a new issue