fix: Use void operator in file watcher to prevent unhandled promise rejections

This commit is contained in:
Raoul Jacobs 2025-11-17 07:39:15 +01:00
parent b1ac40acf6
commit 12f39a7bba
2 changed files with 2 additions and 2 deletions

View file

@ -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
);

View file

@ -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
);