Skip to content

Commit 3ba0e21

Browse files
hdeshevDimitar Kerezov
authored and
Dimitar Kerezov
committed
UsbLiveSyncService minor cleanup.
1 parent caa5279 commit 3ba0e21

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/services/usb-livesync-service.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
187187
}).future<void>()();
188188
}
189189

190-
protected preparePlatformForSync(platform: string) {
191-
if (!this.$platformService.preparePlatform(platform).wait()) {
192-
this.$logger.out("Verify that listed files are well-formed and try again the operation.");
193-
return;
194-
}
190+
protected preparePlatformForSync(platform: string): IFuture<void> {
191+
return (() => {
192+
if (!this.$platformService.preparePlatform(platform).wait()) {
193+
this.$logger.out("Verify that listed files are well-formed and try again the operation.");
194+
return;
195+
}
196+
}).future<void>()();
195197
}
196198

197199
private resolveUsbLiveSyncService(platform: string, device: Mobile.IDevice): IPlatformSpecificUsbLiveSyncService {

0 commit comments

Comments
 (0)