Add clarifying type annotation

This commit is contained in:
Ben Schwartz 2021-07-16 11:23:11 -04:00
parent 4717da7f80
commit a8a10c2c71

View file

@ -49,7 +49,7 @@ export class GcpServer extends ShadowboxServer implements server.ManagedServer {
private apiClient: gcp_api.RestApiClient) {
super(id);
// Optimization: start the check for a static IP immediately.
const hasStaticIp = this.hasStaticIp();
const hasStaticIp: Promise<boolean> = this.hasStaticIp();
this.instanceReadiness = instanceCreation.then(async () => {
if (!await hasStaticIp) {
await this.promoteEphemeralIp();