Skip to content

Commit 4b56c58

Browse files
fix: fix for new @types/node version (#1542)
* 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>
1 parent 837327f commit 4b56c58

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

protos/protos.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/partial-result-stream.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ export class PartialResultStream extends Transform implements ResultEvents {
157157
*
158158
* @param {Error} [err] Optional error to destroy stream with.
159159
*/
160-
destroy(err?: Error): void {
160+
destroy(err?: Error): this {
161161
if (this._destroyed) {
162-
return;
162+
return this;
163163
}
164164

165165
this._destroyed = true;
@@ -170,6 +170,7 @@ export class PartialResultStream extends Transform implements ResultEvents {
170170
}
171171
this.emit('close');
172172
});
173+
return this;
173174
}
174175
/**
175176
* Processes each chunk.

0 commit comments

Comments
 (0)