mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 20:04:11 +01:00
Change multiline beep guard clauses to single line formatting.
This commit is contained in:
@@ -915,10 +915,7 @@ function QuickMarks() //{{{
|
||||
function (arg)
|
||||
{
|
||||
if (/[^a-zA-Z0-9]/.test(arg))
|
||||
{
|
||||
liberator.beep();
|
||||
return;
|
||||
}
|
||||
return void liberator.beep();
|
||||
|
||||
quickmarks.add(arg, buffer.URL);
|
||||
},
|
||||
|
||||
@@ -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 || "") + "/");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user