提交 f2c03b4a 编写于 作者: J Joao Moreno

fix strict null checks in downloadIpc

上级 6bd6732a
......@@ -57,8 +57,8 @@ export class DownloadServiceChannelClient implements IDownloadService {
out = fs.createWriteStream(to);
out.once('close', () => c());
out.once('error', e);
const uploadStream = this.channel.listen('upload', from);
const disposable = uploadStream((result: UploadResponse) => {
const uploadStream = this.channel.listen<UploadResponse>('upload', from);
const disposable = uploadStream(result => {
if (result === void 0) {
disposable.dispose();
out.end(c);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册