From 7e16446dbd3192c49af96683e34652abf1e43828 Mon Sep 17 00:00:00 2001 From: Michel Wohlert Date: Thu, 27 Aug 2020 21:05:33 -0700 Subject: [PATCH] Fix code style for writeCache change --- lib/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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