mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-21 10:07:43 +00:00
❌Remove unnecessary awaits
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
53b6e8f1bb
commit
6e7a190ff0
@ -549,7 +549,7 @@ export class APIBinder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await this.report();
|
await this.report();
|
||||||
await this.reportCurrentState();
|
this.reportCurrentState();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.eventTracker.track('Device state report failure', { error: e });
|
this.eventTracker.track('Device state report failure', { error: e });
|
||||||
// We use the poll interval as the upper limit of
|
// We use the poll interval as the upper limit of
|
||||||
@ -562,7 +562,7 @@ export class APIBinder {
|
|||||||
|
|
||||||
++this.stateReportErrors;
|
++this.stateReportErrors;
|
||||||
await Bluebird.delay(delay);
|
await Bluebird.delay(delay);
|
||||||
await this.reportCurrentState();
|
this.reportCurrentState();
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user