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

Commit

Permalink
chore: fix a compiler error (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicKramer authored Aug 15, 2019
1 parent bb1bcc9 commit c1fbbf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agent/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class Controller extends ServiceObject {
} else if (response.statusCode === 404) {
// The v2 API returns 404 (google.rpc.Code.NOT_FOUND) when the agent
// registration expires. We should re-register.
callback(null, response);
callback(null, response as {} as request.Response);
return;
} else if (response.statusCode !== 200) {
callback(
Expand All @@ -137,7 +137,7 @@ export class Controller extends ServiceObject {
} else {
body = body || {};
that.nextWaitToken = body.nextWaitToken;
callback(null, response, body);
callback(null, response as {} as request.Response, body);
}
}
);
Expand Down

0 comments on commit c1fbbf7

Please sign in to comment.