diff --git a/lib/bcoin/utils.js b/lib/bcoin/utils.js index ba505641..fc718da3 100644 --- a/lib/bcoin/utils.js +++ b/lib/bcoin/utils.js @@ -181,7 +181,8 @@ utils.writeU64 = function writeU64(dst, num, off) { off = 0; num = new bn(num).maskn(64).toArray(); - while (num.length < 8) num.unshift(0); + while (num.length < 8) + num.unshift(0); num.reverse().forEach(function(ch) { dst[off++] = ch; @@ -213,7 +214,8 @@ utils.writeU64BE = function writeU64BE(dst, num, off) { off = 0; num = new bn(num).maskn(64).toArray(); - while (num.length < 8) num.unshift(0); + while (num.length < 8) + num.unshift(0); num.forEach(function(ch) { dst[off++] = ch;