Skip to content

Commit 5ffaba7

Browse files
committed
chore: fix comments
1 parent d42cd90 commit 5ffaba7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/services/livesync/android-device-livesync-sockets-service.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ export class AndroidDeviceSocketsLiveSyncService extends DeviceLiveSyncServiceBa
3030
}
3131

3232
public async finalizeSync(liveSyncInfo: ILiveSyncResultInfo) {
33-
await this.doSync(liveSyncInfo, false);
33+
await this.doSync(liveSyncInfo);
3434
}
3535

36-
private async doSync(liveSyncInfo: ILiveSyncResultInfo, doRefresh = false): Promise<IAndroidLivesyncSyncOperationResult> {
37-
let result;
36+
private async doSync(liveSyncInfo: ILiveSyncResultInfo, {doRefresh = false}: {doRefresh?: boolean} = {}): Promise<IAndroidLivesyncSyncOperationResult> {
3837
const operationId = this.livesyncTool.generateOperationIdentifier();
3938

40-
result = {operationId, didRefresh: true };
39+
let result = {operationId, didRefresh: true };
4140

4241
if (liveSyncInfo.modifiedFilesData.length) {
4342

@@ -65,7 +64,7 @@ export class AndroidDeviceSocketsLiveSyncService extends DeviceLiveSyncServiceBa
6564
public async refreshApplication(projectData: IProjectData, liveSyncInfo: ILiveSyncResultInfo) {
6665
const canExecuteFastSync = !liveSyncInfo.isFullSync && this.canExecuteFastSyncForPaths(liveSyncInfo.modifiedFilesData, projectData, this.device.deviceInfo.platform);
6766

68-
const syncOperationResult = await this.doSync(liveSyncInfo, canExecuteFastSync);
67+
const syncOperationResult = await this.doSync(liveSyncInfo, {doRefresh: canExecuteFastSync});
6968

7069
this.livesyncTool.end();
7170

0 commit comments

Comments
 (0)