Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit c1fbbf7

Browse files
chore: fix a compiler error (#740)
1 parent bb1bcc9 commit c1fbbf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agent/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class Controller extends ServiceObject {
125125
} else if (response.statusCode === 404) {
126126
// The v2 API returns 404 (google.rpc.Code.NOT_FOUND) when the agent
127127
// registration expires. We should re-register.
128-
callback(null, response);
128+
callback(null, response as {} as request.Response);
129129
return;
130130
} else if (response.statusCode !== 200) {
131131
callback(
@@ -137,7 +137,7 @@ export class Controller extends ServiceObject {
137137
} else {
138138
body = body || {};
139139
that.nextWaitToken = body.nextWaitToken;
140-
callback(null, response, body);
140+
callback(null, response as {} as request.Response, body);
141141
}
142142
}
143143
);

0 commit comments

Comments
 (0)