From 58575c1880faa97e9107ce641a85b63a10e510ef Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Fri, 24 Oct 2025 15:38:38 +0200 Subject: [PATCH] Removes unnecessary text selection validation check Eliminates redundant empty selection check in cleanup command Allows processing of empty selections by removing the initial validation preventing user action when no text is selected --- commands/cleanupCommand.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/commands/cleanupCommand.ts b/commands/cleanupCommand.ts index 7dc819b..62d4d5a 100644 --- a/commands/cleanupCommand.ts +++ b/commands/cleanupCommand.ts @@ -42,11 +42,6 @@ export class CleanupCommand { // Get selected text const selectedText = editor.getSelection(); - if (!selectedText || selectedText.trim().length === 0) { - new Notice('Please select some text to clean up'); - return; - } - // Validate text selection before proceeding const validation = this.validateSelection(selectedText); if (!validation.isValid) {