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
This commit is contained in:
AlexKucera committed 2025-10-24 16:06:03 +02:00
1 parent e29539c8eb
commit 20c27b45ce
1 file changed
+1 -2
+1 -2
View File
@@ -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;
}
}