diff --git a/lib/client.js b/lib/client.js index ccbfcf7ec..02d1a337a 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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