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
This commit is contained in:
AlexKucera committed 2025-10-24 15:38:38 +02:00
1 parent e6b357f3f2
commit 58575c1880
1 file changed
-5
-5
View File
@@ -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) {