Simplifying comment

This commit is contained in:
KoloMl 2024-08-29 02:20:22 +04:00
parent 7643f5ddb2
commit aa186fa0ad

View file

@ -251,7 +251,7 @@ function escapeSelection(textarea: HTMLTextAreaElement, options: Partial<SyntaxH
const { text = selectedText } = options, const { text = selectedText } = options,
emptyText = text === ''; emptyText = text === '';
// Even if there is nothing to escape, we still need to return the result, otherwise the error would be thrown. // Nothing to escape, so do nothing
if (emptyText) { if (emptyText) {
return { return {
newText: text, newText: text,