mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-25 04:33:31 +01:00
Get rid of absurd strict JS warnings.
This commit is contained in:
@@ -213,8 +213,10 @@ const AutoCommands = Module("autocommands", {
|
||||
// TODO: Perhaps this should take -args to pass to the command?
|
||||
function (args) {
|
||||
// Vim compatible
|
||||
if (args.length == 0)
|
||||
return void liberator.echomsg("No matching autocommands");
|
||||
if (args.length == 0) {
|
||||
liberator.echomsg("No matching autocommands");
|
||||
return;
|
||||
}
|
||||
|
||||
let [event, url] = args;
|
||||
let defaultURL = url || buffer.URL;
|
||||
|
||||
Reference in New Issue
Block a user