Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Remove conversion of strings to string
Browse files Browse the repository at this point in the history
  • Loading branch information
platy committed Aug 19, 2016
1 parent ba5d0c4 commit 6bb26b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function OutBatch() {

OutBatch.prototype.append = function (buf, flags, cb) {
if (typeof buf === 'string') {
buf = new Buffer(String(buf), 'utf8');
buf = new Buffer(buf, 'utf8');
} else if (!Buffer.isBuffer(buf)) {
throw new TypeError('ZeroMQ only supports Buffers or Strings as messages');
}
Expand Down

0 comments on commit 6bb26b8

Please sign in to comment.