Skip to content

Commit

Permalink
fix bus name validator for ProxyObject
Browse files Browse the repository at this point in the history
fixes #27
  • Loading branch information
Tony Crisci committed May 30, 2019
1 parent 6912ae2 commit 0a8b7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/proxy-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {Variant} = require('../variant');
const {Message} = require ('../message-type');
const { DBusError } = require('../errors');
const {
assertInterfaceNameValid,
assertBusNameValid,
assertObjectPathValid,
isObjectPathValid,
isInterfaceNameValid
Expand All @@ -32,7 +32,7 @@ class ProxyObject {
* directly. Use {@link MessageBus#getProxyObject} to get a proxy object.
*/
constructor(bus, name, path) {
assertInterfaceNameValid(name);
assertBusNameValid(name);
assertObjectPathValid(path);
/**
* The {@link MessageBus} this name belongs to.
Expand Down

0 comments on commit 0a8b7b0

Please sign in to comment.