mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:48:00 +01:00
Change multiline beep guard clauses to single line formatting.
This commit is contained in:
@@ -546,10 +546,7 @@ function Editor() //{{{
|
||||
let text = getEditor().value;
|
||||
let pos = getEditor().selectionStart;
|
||||
if (pos >= text.length)
|
||||
{
|
||||
liberator.beep();
|
||||
return;
|
||||
}
|
||||
return void liberator.beep();
|
||||
let chr = text[pos];
|
||||
getEditor().value = text.substring(0, pos) +
|
||||
(chr == chr.toLocaleLowerCase() ? chr.toLocaleUpperCase() : chr.toLocaleLowerCase()) +
|
||||
|
||||
Reference in New Issue
Block a user