File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,6 @@ class LiveSyncServiceBase extends EventEmitter implements ILiveSyncServiceBase {
32
32
this . fileHashes = Object . create ( null ) ;
33
33
}
34
34
35
- public getPlatform ( platform ?: string ) : IFuture < string > { // gets the platform and ensures that the devicesService is initialized
36
- return ( ( ) => {
37
- this . $devicesService . initialize ( { platform : platform , deviceId : this . $options . device } ) . wait ( ) ;
38
- return platform || this . $devicesService . platform ;
39
- } ) . future < string > ( ) ( ) ;
40
- }
41
-
42
35
public sync ( data : ILiveSyncData [ ] , filePaths ?: string [ ] ) : IFuture < void > {
43
36
return ( ( ) => {
44
37
this . syncCore ( data , filePaths ) . wait ( ) ;
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class LiveSyncService implements ILiveSyncService {
72
72
}
73
73
74
74
private prepareLiveSyncData ( platform : string ) : ILiveSyncData {
75
- platform = this . $liveSyncServiceBase . getPlatform ( platform ) . wait ( ) ;
75
+ platform = platform || this . $devicesService . platform ;
76
76
if ( ! this . $platformService . preparePlatform ( platform . toLowerCase ( ) ) . wait ( ) ) {
77
77
this . $errors . failWithoutHelp ( "Verify that listed files are well-formed and try again the operation." ) ;
78
78
}
You can’t perform that action at this time.
0 commit comments