File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,10 @@ export class NaoRobotModel extends DOMWidgetModel {
130
130
}
131
131
132
132
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
+ }
136
137
137
138
// Skip if service exists already
138
139
if ( this . _services [ serviceName ] !== undefined ) {
@@ -165,8 +166,10 @@ export class NaoRobotModel extends DOMWidgetModel {
165
166
args : any ,
166
167
_kwargs : any
167
168
) {
168
- const isConnected : boolean = await this . checkConnection ( ) ;
169
- if ( ! isConnected ) return ;
169
+ const isConnected : boolean = await this . checkConnection ( ) ;
170
+ if ( ! isConnected ) {
171
+ return ;
172
+ }
170
173
171
174
// Wait for service to become available
172
175
const sleep = ( ms : number ) => new Promise ( ( r ) => setTimeout ( r , ms ) ) ;
You can’t perform that action at this time.
0 commit comments