Skip to content

Commit

Permalink
fix: fix for new @types/node version (#1542)
Browse files Browse the repository at this point in the history
* fix: fix for new @types/node version

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
asthamohta and gcf-owl-bot[bot] committed Jan 17, 2022
1 parent 837327f commit 4b56c58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/partial-result-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ export class PartialResultStream extends Transform implements ResultEvents {
*
* @param {Error} [err] Optional error to destroy stream with.
*/
destroy(err?: Error): void {
destroy(err?: Error): this {
if (this._destroyed) {
return;
return this;
}

this._destroyed = true;
Expand All @@ -170,6 +170,7 @@ export class PartialResultStream extends Transform implements ResultEvents {
}
this.emit('close');
});
return this;
}
/**
* Processes each chunk.
Expand Down

0 comments on commit 4b56c58

Please sign in to comment.