Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alxhotel committed Jul 5, 2023
1 parent 80f0818 commit 7ba0e1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Client extends EventEmitter {

// Add new device
const newDevice = new Device({
name: name,
name,
friendlyName: device.name,
host: device.host
})
Expand Down Expand Up @@ -143,7 +143,7 @@ class Client extends EventEmitter {

if (!this._devices[name]) {
// New device
this._devices[name] = { name: friendlyName, host: host }
this._devices[name] = { name: friendlyName, host }
this._updateDevice(name)
} else if (!this._devices[name].name || !this._devices[name].host) {
// Update device
Expand Down
2 changes: 1 addition & 1 deletion lib/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class Device extends EventEmitter {
this._tryJoin((err) => {
if (err) return callback(err)

this.client.setVolume({ muted: muted }, callback)
this.client.setVolume({ muted }, callback)
})
}

Expand Down

0 comments on commit 7ba0e1e

Please sign in to comment.