From 12f39a7bba81450d9e5e22147196167c6c92d175 Mon Sep 17 00:00:00 2001 From: Raoul Jacobs Date: Mon, 17 Nov 2025 07:39:15 +0100 Subject: [PATCH] fix: Use void operator in file watcher to prevent unhandled promise rejections --- main.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index cfe478e..89ce8b1 100644 --- a/main.js +++ b/main.js @@ -445,7 +445,7 @@ var TaskExportPlugin = class extends import_obsidian3.Plugin { await this.loadSettings(); this.exporter = new TaskExporter(this.app); this.fileWatcher = new FileWatcher( - () => this.autoExport(), + () => void this.autoExport(), this.settings.debounceDelay, this.settings.customersFolder ); diff --git a/src/main.ts b/src/main.ts index 6711957..34dd6e3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -23,7 +23,7 @@ export default class TaskExportPlugin extends Plugin { // Initialize file watcher this.fileWatcher = new FileWatcher( - () => this.autoExport(), + () => void this.autoExport(), this.settings.debounceDelay, this.settings.customersFolder );