mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-21 19:35:41 +02:00
Employ dactyl.assert where appropriate in Melodactyl.
This commit is contained in:
1 parent
d196061b16
commit
48dd94773e
3 files changed
+22
-41
No files matched your search
@@ -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