Commit de179417 authored by Owen W. Taylor's avatar Owen W. Taylor

Fix some typos in change to add --bus-type

parent 139b0e43
......@@ -71,13 +71,13 @@ const Autobuilder = new Lang.Class({
if (args._autoupdate_rebuild)
this._autoupdate_rebuild = Gio.File.new_for_path(args._autoupdate_rebuild);
let bus = None;
let bus = null;
if (args.bus_type == 'session' || args.bus_type == null) {
bus = Gio.DBus.session;
} else if (args.bus_type == 'system') {
bus = Gio.DBus.system;
} else if (args.bus_type != 'none') {
throw new Error("Bus type " args.bus_type + " must be one of system, session, or none");
throw new Error("Bus type " + args.bus_type + " must be one of system, session, or none");
}
if (bus) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment