Skip to content

Commit bed2870

Browse files
committed
Prettify
1 parent d96ebda commit bed2870

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/widget.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ export class NaoRobotModel extends DOMWidgetModel {
130130
}
131131

132132
private async createService(serviceName: string) {
133-
134-
const isConnected : boolean = await this.checkConnection();
135-
if (!isConnected) return;
133+
const isConnected: boolean = await this.checkConnection();
134+
if (!isConnected) {
135+
return;
136+
}
136137

137138
// Skip if service exists already
138139
if (this._services[serviceName] !== undefined) {
@@ -165,8 +166,10 @@ export class NaoRobotModel extends DOMWidgetModel {
165166
args: any,
166167
_kwargs: any
167168
) {
168-
const isConnected : boolean = await this.checkConnection();
169-
if (!isConnected) return;
169+
const isConnected: boolean = await this.checkConnection();
170+
if (!isConnected) {
171+
return;
172+
}
170173

171174
// Wait for service to become available
172175
const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));

0 commit comments

Comments
 (0)