File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ export class RemovePlatformCommand implements ICommand {
3
3
4
4
constructor ( private $platformService : IPlatformService ,
5
5
private $projectData : IProjectData ,
6
- private $errors : IErrors ,
7
- private $platformsData : IPlatformsData ) {
6
+ private $errors : IErrors ) {
8
7
this . $projectData . initializeProjectData ( ) ;
9
8
}
10
9
@@ -17,12 +16,9 @@ export class RemovePlatformCommand implements ICommand {
17
16
this . $errors . fail ( "No platform specified. Please specify a platform to remove" ) ;
18
17
}
19
18
20
- for ( const platform of args ) {
21
- this . $platformService . validatePlatformInstalled ( platform , this . $projectData ) ;
22
- const platformData = this . $platformsData . getPlatformData ( platform , this . $projectData ) ;
23
- const platformProjectService = platformData . platformProjectService ;
24
- await platformProjectService . validate ( this . $projectData ) ;
25
- }
19
+ _ . each ( args , platform => {
20
+ this . $platformService . validatePlatform ( platform , this . $projectData ) ;
21
+ } ) ;
26
22
27
23
return true ;
28
24
}
You can’t perform that action at this time.
0 commit comments