From 20c27b45cedbcc5d86effa9172c02fc55f5dcf2e Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Fri, 24 Oct 2025 16:06:03 +0200 Subject: [PATCH] Removes duplicate error notification in cleanup service Simplifies error handling by allowing the command layer to manage user feedback Prevents potential redundant error notices and improves separation of concerns --- services/cleanupService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/cleanupService.ts b/services/cleanupService.ts index e41a05a..68fdf08 100644 --- a/services/cleanupService.ts +++ b/services/cleanupService.ts @@ -91,8 +91,7 @@ export class CleanupService { return result; } catch (error) { - const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred'; - new Notice(`Text cleanup failed: ${errorMessage}`); + // Let the command layer handle user feedback to avoid duplicate notices throw error; } }