提交 eb530016 编写于 作者: B Benjamin Pasero

fix npe in fileservice

上级 33558fb2
......@@ -372,7 +372,11 @@ export class FileService implements IFileService {
decoder.end();
}
if (fd) {
fs.close(fd, err => this.options.errorLogger(err.toString()));
fs.close(fd, err => {
if (err) {
this.options.errorLogger(err.toString());
}
});
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册