File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ export class PrepareCommand implements ICommand {
6
6
private $platformCommandParameter : ICommandParameter ) { }
7
7
8
8
execute ( args : string [ ] ) : IFuture < void > {
9
- return ( ( ) => {
10
- this . $platformService . preparePlatform ( args [ 0 ] ) . wait ( ) ;
11
- } ) . future < void > ( ) ( ) ;
9
+ return this . $platformService . preparePlatform ( args [ 0 ] ) ;
12
10
}
13
11
14
12
allowedParameters = [ this . $platformCommandParameter ] ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class RunAndroidCommand extends RunCommandBase implements ICommand {
28
28
private $platformsData : IPlatformsData ) {
29
29
super ( $platformService ) ;
30
30
}
31
-
31
+
32
32
public allowedParameters : ICommandParameter [ ] = [ ] ;
33
33
34
34
public execute ( args : string [ ] ) : IFuture < void > {
Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ export class PlatformService implements IPlatformService {
146
146
147
147
public preparePlatform ( platform : string ) : IFuture < void > {
148
148
return ( ( ) => {
149
+ this . validatePlatform ( platform ) ;
150
+
149
151
platform = platform . toLowerCase ( ) ;
150
152
151
153
var platformData = this . $platformsData . getPlatformData ( platform ) ;
You can’t perform that action at this time.
0 commit comments