Remove unnecessary awaits

Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2020-01-16 11:13:36 +00:00
parent 53b6e8f1bb
commit 6e7a190ff0
No known key found for this signature in database
GPG Key ID: 49690ED87032539F

View File

@ -549,7 +549,7 @@ export class APIBinder {
}
await this.report();
await this.reportCurrentState();
this.reportCurrentState();
} catch (e) {
this.eventTracker.track('Device state report failure', { error: e });
// We use the poll interval as the upper limit of
@ -562,7 +562,7 @@ export class APIBinder {
++this.stateReportErrors;
await Bluebird.delay(delay);
await this.reportCurrentState();
this.reportCurrentState();
}
})();
return null;