Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoseph Maguire committed Aug 6, 2020
1 parent d21d277 commit 3eec98c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ MqttClient.prototype._setupStream = function () {
// auth
if (this.options.properties) {
if (!this.options.properties.authenticationMethod && this.options.properties.authenticationData) {
that.end(() =>
this.emit('error', new Error('Packet has no Authentication Method')
))
that.end(function () {
this.emit('error', new Error('Packet has no Authentication Method'))
})
return this
}
if (this.options.properties.authenticationMethod && this.options.authPacket && typeof this.options.authPacket === 'object') {
Expand Down Expand Up @@ -837,7 +837,7 @@ MqttClient.prototype.end = function (force, opts, cb) {
// just to make sure things are
// ok for websockets
debug('end :: (%s) :: finish :: calling _cleanUp with force %s', that.options.clientId, force)
that._cleanUp(force, () => {
that._cleanUp(force, function () {
debug('end :: finish :: calling process.nextTick on closeStores')
// var boundProcess = nextTick.bind(null, closeStores)
nextTick(closeStores.bind(that))
Expand Down

0 comments on commit 3eec98c

Please sign in to comment.