summaryrefslogtreecommitdiff
path: root/common/content/hints.js
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2009-06-02 19:41:22 +1000
committerDoug Kearns <dougkearns@gmail.com>2009-06-04 14:30:46 +1000
commit09d8af904466f157de7e10a0f0b2bde44ddffb69 (patch)
tree090d8e8f6fac7d2ba0ec97e6efba8cfbfbde5687 /common/content/hints.js
parente762b6f9d457459da647b3a3eba189cdd8a4465c (diff)
downloadpentadactyl-09d8af904466f157de7e10a0f0b2bde44ddffb69.tar.gz
Change multiline beep guard clauses to single line formatting.
Diffstat (limited to 'common/content/hints.js')
-rw-r--r--common/content/hints.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/common/content/hints.js b/common/content/hints.js
index 23ddda09..33ea8fa7 100644
--- a/common/content/hints.js
+++ b/common/content/hints.js
@@ -913,10 +913,7 @@ function Hints() //{{{
{
hintMode = hintModes[minor];
if (!hintMode)
- {
- liberator.beep();
- return;
- }
+ return void liberator.beep();
commandline.input(hintMode.prompt + ": ", null, { onChange: onInput });
modes.extended = modes.HINTS;
@@ -1013,8 +1010,7 @@ function Hints() //{{{
{
usedTabKey = false;
hintNumber = 0;
- liberator.beep();
- return;
+ return void liberator.beep();
}
break;
@@ -1053,10 +1049,7 @@ function Hints() //{{{
showActiveHint(hintNumber, oldHintNumber || 1);
if (hintNumber == 0 || hintNumber > validHints.length)
- {
- liberator.beep();
- return;
- }
+ return void liberator.beep();
// if we write a numeric part like 3, but we have 45 hints, only follow
// the hint after a timeout, as the user might have wanted to follow link 34