Skip to content

Commit 28ceea5

Browse files
authored
Fix updateFileWatcher didn't invoke auto refresh method (#168)
1 parent 418589a commit 28ceea5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fileWather.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export class SyncHandler {
99

1010
public static updateFileWatcher(autoRefresh: boolean): void {
1111
if (autoRefresh) {
12-
instrumentOperation(SyncHandler.ENABLE_AUTO_REFRESH, () => this.enableAutoRefresh());
12+
instrumentOperation(SyncHandler.ENABLE_AUTO_REFRESH, () => this.enableAutoRefresh())();
1313
} else {
14-
instrumentOperation(SyncHandler.DISABLE_AUTO_REFRESH, () => this.disableAutoRefresh());
14+
instrumentOperation(SyncHandler.DISABLE_AUTO_REFRESH, () => this.disableAutoRefresh())();
1515
}
1616
}
1717

0 commit comments

Comments
 (0)