Skip to content

Commit

Permalink
refactor(message-stream): correct typo for compression path
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Nov 12, 2019
1 parent 578f6ba commit 713fa38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/cmap/message_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MessageStream extends Duplex {
}

// otherwise, compress the message
const concatenatedOriginalCommandBuffer = Buffer.concat(command.toBind());
const concatenatedOriginalCommandBuffer = Buffer.concat(command.toBin());
const messageToBeCompressed = concatenatedOriginalCommandBuffer.slice(MESSAGE_HEADER_SIZE);

// Extract information needed for OP_COMPRESSED from the uncompressed message
Expand Down

0 comments on commit 713fa38

Please sign in to comment.