@@ -30,7 +30,8 @@ import { InstallWithProgress } from './grpc-installable';
30
30
@injectable ( )
31
31
export class LibraryServiceImpl
32
32
extends CoreClientAware
33
- implements LibraryService {
33
+ implements LibraryService
34
+ {
34
35
@inject ( ILogger )
35
36
protected logger : ILogger ;
36
37
@@ -267,9 +268,7 @@ export class LibraryServiceImpl
267
268
req . setInstance ( instance ) ;
268
269
req . setName ( item . name ) ;
269
270
req . setVersion ( version ) ;
270
- if ( options . installDependencies === false ) {
271
- req . setNoDeps ( true ) ;
272
- }
271
+ req . setNoDeps ( ! options . installDependencies ) ;
273
272
274
273
console . info ( '>>> Starting library package installation...' , item ) ;
275
274
const resp = client . libraryInstall ( req ) ;
@@ -282,13 +281,14 @@ export class LibraryServiceImpl
282
281
) ;
283
282
await new Promise < void > ( ( resolve , reject ) => {
284
283
resp . on ( 'end' , ( ) => {
285
- this . boardDiscovery . startBoardListWatch ( coreClient )
284
+ this . boardDiscovery . startBoardListWatch ( coreClient ) ;
286
285
resolve ( ) ;
287
286
} ) ;
288
287
resp . on ( 'error' , ( error ) => {
289
288
this . responseService . appendToOutput ( {
290
- chunk : `Failed to install library: ${ item . name } ${ version ? `:${ version } ` : ''
291
- } .\n`,
289
+ chunk : `Failed to install library: ${ item . name } ${
290
+ version ? `:${ version } ` : ''
291
+ } .\n`,
292
292
} ) ;
293
293
this . responseService . appendToOutput ( {
294
294
chunk : error . toString ( ) ,
@@ -332,7 +332,7 @@ export class LibraryServiceImpl
332
332
) ;
333
333
await new Promise < void > ( ( resolve , reject ) => {
334
334
resp . on ( 'end' , ( ) => {
335
- this . boardDiscovery . startBoardListWatch ( coreClient )
335
+ this . boardDiscovery . startBoardListWatch ( coreClient ) ;
336
336
resolve ( ) ;
337
337
} ) ;
338
338
resp . on ( 'error' , reject ) ;
@@ -364,7 +364,7 @@ export class LibraryServiceImpl
364
364
) ;
365
365
await new Promise < void > ( ( resolve , reject ) => {
366
366
resp . on ( 'end' , ( ) => {
367
- this . boardDiscovery . startBoardListWatch ( coreClient )
367
+ this . boardDiscovery . startBoardListWatch ( coreClient ) ;
368
368
resolve ( ) ;
369
369
} ) ;
370
370
resp . on ( 'error' , reject ) ;
0 commit comments