Skip to content

Commit

Permalink
fix build in mqttjs
Browse files Browse the repository at this point in the history
  • Loading branch information
scarry1992 committed Mar 21, 2019
1 parent 21ebeea commit a026a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writeToStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ function getProperties (stream, properties) {
length += Object.getOwnPropertyNames(value).reduce(function (result, name) {
var currentValue = value[name]
if (Array.isArray(currentValue)) {
result += currentValue.reduce((currentLength, value) => {
result += currentValue.reduce(function (currentLength, value) {
currentLength += 1 + 2 + Buffer.byteLength(name.toString()) + 2 + Buffer.byteLength(value.toString())
return currentLength
}, 0)
Expand Down

0 comments on commit a026a38

Please sign in to comment.