@@ -7,6 +7,7 @@ import helpers = require("../common/helpers");
7
7
import usbLivesyncServiceBaseLib = require( "../common/services/usb-livesync-service-base" ) ;
8
8
import path = require( "path" ) ;
9
9
import semver = require( "semver" ) ;
10
+ import Future = require( "fibers/future" ) ;
10
11
11
12
export class UsbLiveSyncService extends usbLivesyncServiceBaseLib . UsbLiveSyncServiceBase implements IUsbLiveSyncService {
12
13
private excludedProjectDirsAndFiles = [
@@ -38,7 +39,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
38
39
public liveSync ( platform : string ) : IFuture < void > {
39
40
return ( ( ) => {
40
41
platform = platform || this . initialize ( platform ) . wait ( ) ;
41
- let platformLowerCase = platform . toLowerCase ( ) ;
42
+ let platformLowerCase = platform ? platform . toLowerCase ( ) : null ;
42
43
let platformData = this . $platformsData . getPlatformData ( platformLowerCase ) ;
43
44
44
45
if ( platformLowerCase === this . $devicePlatformsConstants . Android . toLowerCase ( ) ) {
@@ -75,7 +76,8 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
75
76
let platformSpecificUsbLiveSyncService = this . resolveUsbLiveSyncService ( platform || this . $devicesServices . platform , device ) ;
76
77
if ( platformSpecificUsbLiveSyncService . beforeLiveSyncAction ) {
77
78
return platformSpecificUsbLiveSyncService . beforeLiveSyncAction ( deviceAppData ) ;
78
- }
79
+ }
80
+ return Future . fromResult ( ) ;
79
81
}
80
82
81
83
let beforeBatchLiveSyncAction = ( filePath : string ) : IFuture < string > => {
0 commit comments