Skip to content

Commit d46fec2

Browse files
committed
Fix shouldStartWatcher check and fix lint errors
1 parent ad822cd commit d46fec2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/services/livesync/livesync-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
332332

333333
this.setLiveSyncProcessInfo(liveSyncData.projectDir, deviceDescriptors);
334334

335-
const shouldStartWatcher = liveSyncData.syncToPreviewApp || (!liveSyncData.skipWatcher && this.liveSyncProcessesInfo[projectData.projectDir].deviceDescriptors.length);
335+
const shouldStartWatcher = !liveSyncData.skipWatcher && (liveSyncData.syncToPreviewApp || this.liveSyncProcessesInfo[projectData.projectDir].deviceDescriptors.length);
336336
if (shouldStartWatcher) {
337337
// Should be set after prepare
338338
this.$usbLiveSyncService.isInitialized = true;

lib/services/livesync/playground/preview-app-plugins-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class PreviewAppPluginsService implements IPreviewAppPluginsService {
1414
_.keys(localPlugins).forEach(localPlugin => {
1515
const localPluginVersion = localPlugins[localPlugin];
1616
const devicePluginVersion = devicePlugins[localPlugin];
17-
17+
1818
this.$logger.trace(`Comparing plugin ${localPlugin} with localPluginVersion ${localPluginVersion} and devicePluginVersion ${devicePluginVersion}`);
1919

2020
if (!devicePluginVersion) {

0 commit comments

Comments
 (0)