diff --git a/frontend/obsidian-plugin/src/views/logs/logs-view.ts b/frontend/obsidian-plugin/src/views/logs/logs-view.ts index 68d597e4..f624d848 100644 --- a/frontend/obsidian-plugin/src/views/logs/logs-view.ts +++ b/frontend/obsidian-plugin/src/views/logs/logs-view.ts @@ -85,7 +85,7 @@ export class LogsView extends ItemView { cls: "clickable-icon" }); setIcon(copyButton, "clipboard-copy"); - copyButton.addEventListener("click", () => this.copyLogsToClipboard()); + copyButton.addEventListener("click", () => { this.copyLogsToClipboard(); }); controls.createEl("select", {}, (dropdown) => { logLevels.forEach(({ label, value }) => diff --git a/frontend/sync-client/src/file-operations/safe-filesystem-operations.ts b/frontend/sync-client/src/file-operations/safe-filesystem-operations.ts index add07b74..33984be4 100644 --- a/frontend/sync-client/src/file-operations/safe-filesystem-operations.ts +++ b/frontend/sync-client/src/file-operations/safe-filesystem-operations.ts @@ -75,7 +75,7 @@ export class SafeFileSystemOperations implements FileSystemOperations { public async exists( path: RelativePath, - skipLock: boolean = false + skipLock = false ): Promise { this.logger.debug(`Checking if file '${path}' exists`); if (skipLock) { @@ -100,7 +100,7 @@ export class SafeFileSystemOperations implements FileSystemOperations { public async rename( oldPath: RelativePath, newPath: RelativePath, - skipLock: boolean = false + skipLock = false ): Promise { this.logger.debug(`Renaming file '${oldPath}' to '${newPath}'`); return this.safeOperation( @@ -122,11 +122,11 @@ export class SafeFileSystemOperations implements FileSystemOperations { return this.locks.tryLock(path); } - public waitForLock(path: RelativePath) { + public async waitForLock(path: RelativePath): Promise { return this.locks.waitForLock(path); } - public unlock(path: RelativePath) { + public unlock(path: RelativePath): void { this.locks.unlock(path); } diff --git a/frontend/sync-client/src/sync-operations/syncer.ts b/frontend/sync-client/src/sync-operations/syncer.ts index 897bdf57..7a5fcb14 100644 --- a/frontend/sync-client/src/sync-operations/syncer.ts +++ b/frontend/sync-client/src/sync-operations/syncer.ts @@ -270,7 +270,7 @@ export class Syncer { public async waitUntilFinished(): Promise { await this.runningScheduleSyncForOfflineChanges; - return this.syncQueue.onEmpty(); + await this.syncQueue.onEmpty(); } public async syncRemotelyUpdatedFile(