mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-29 01:35:46 +01:00
Employ dactyl.assert where appropriate in Melodactyl.
This commit is contained in:
@@ -215,10 +215,8 @@ const AutoCommands = Module("autocommands", {
|
||||
// TODO: Perhaps this should take -args to pass to the command?
|
||||
function (args) {
|
||||
// Vim compatible
|
||||
if (args.length == 0) {
|
||||
dactyl.echomsg("No matching autocommands");
|
||||
return;
|
||||
}
|
||||
if (args.length == 0)
|
||||
return void dactyl.echomsg("No matching autocommands");
|
||||
|
||||
let [event, url] = args;
|
||||
let defaultURL = url || buffer.URL;
|
||||
|
||||
Reference in New Issue
Block a user