1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 08:27:58 +01:00

Change multiline beep guard clauses to single line formatting.

This commit is contained in:
Doug Kearns
2009-06-02 19:41:22 +10:00
parent e762b6f9d4
commit 09d8af9044
8 changed files with 12 additions and 46 deletions

View File

@@ -147,10 +147,7 @@ const config = { //{{{
{
let matches = buffer.URL.match(/(.*?)(\d+)(\D*)$/);
if (!matches)
{
liberator.beep();
return;
}
return void liberator.beep();
let [, pre, number, post] = matches;
let newNumber = parseInt(number, 10) + count;
@@ -305,10 +302,7 @@ const config = { //{{{
{
let uri = content.document.location;
if (/(about|mailto):/.test(uri.protocol)) // exclude these special protocols for now
{
liberator.beep();
return;
}
return void liberator.beep();
liberator.open(uri.protocol + "//" + (uri.host || "") + "/");
});