Skip to content

Commit b81cf01

Browse files
committed
string concatination > buffer concatination
1 parent 994acde commit b81cf01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/encode.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ var buff_e = new Buffer('e')
4141

4242
encode.bytes = function( buffers, data ) {
4343

44-
buffers.push( new Buffer(Buffer.byteLength( data )+":") )
45-
buffers.push( new Buffer(data) )
44+
buffers.push( new Buffer(Buffer.byteLength( data ) + ": " + data) )
4645
}
4746

4847
encode.number = function( buffers, data ) {

0 commit comments

Comments
 (0)