提交 4fcaf3b2 编写于 作者: S Sandeep Somavarapu

remove duplicate code

上级 8f4d34e0
......@@ -177,12 +177,6 @@ export interface ReadableStream<T> {
destroy(): void;
}
export function isVSBufferReadableStream(obj: any): obj is VSBufferReadableStream {
const candidate: VSBufferReadableStream = obj;
return candidate && [candidate.on, candidate.pause, candidate.resume, candidate.destroy].every(fn => typeof fn === 'function');
}
/**
* A readable stream that sends data via VSBuffer.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册