Skip to content

Commit

Permalink
feat(longrange): array.push, not array.concat to append
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbraun committed Nov 15, 2023
1 parent 15bc808 commit 7b268b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/capabilities/NodeInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,9 @@ export function encodeNodeInformationFrame(
if (isLongRange) {
const ccListLength = Buffer.allocUnsafe(1);
ccListLength[0] = ccList.length;
buffers.concat(ccListLength);
buffers.push(ccListLength);
}
buffers.concat(ccList);
buffers.push(ccList);

return Buffer.concat(buffers);
}
Expand Down

0 comments on commit 7b268b4

Please sign in to comment.