mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Simplifying comment
This commit is contained in:
parent
7643f5ddb2
commit
aa186fa0ad
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ function escapeSelection(textarea: HTMLTextAreaElement, options: Partial<SyntaxH
|
|||
const { text = selectedText } = options,
|
||||
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) {
|
||||
return {
|
||||
newText: text,
|
||||
|
|
Loading…
Reference in a new issue