Skip to content

Commit

Permalink
Fix code style for writeCache change
Browse files Browse the repository at this point in the history
  • Loading branch information
mwohlert committed Aug 28, 2020
1 parent 203bec4 commit 7e16446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ function MqttClient (streamBuilder, options) {
this.options.customHandleAcks = (options.protocolVersion === 5 && options.customHandleAcks) ? options.customHandleAcks : function () { arguments[3](0) }

// Disable pre-generated write cache if requested. Will allocate buffers on-the-fly instead. WARNING: This can affect write performance
if(!this.options.writeCache) {
mqttPacket.writeToStream.cacheNumbers = false;
if (!this.options.writeCache) {
mqttPacket.writeToStream.cacheNumbers = false
}

this.streamBuilder = streamBuilder
Expand Down

0 comments on commit 7e16446

Please sign in to comment.