1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-05-01 00:34:05 +02:00

Employ dactyl.assert where appropriate in Melodactyl.

This commit is contained in:
Doug Kearns
2010-10-21 15:25:54 +11:00
parent d196061b16
commit 48dd94773e
3 changed files with 22 additions and 41 deletions
+2 -4
View File
@@ -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;