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

Commit 2ad75f5

Browse files
committed
Remove conversion of strings to string
1 parent 30428b0 commit 2ad75f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function OutBatch() {
193193

194194
OutBatch.prototype.append = function (buf, flags, cb) {
195195
if (typeof buf === 'string') {
196-
buf = new Buffer(String(buf), 'utf8');
196+
buf = new Buffer(buf, 'utf8');
197197
} else if (!Buffer.isBuffer(buf)) {
198198
throw new TypeError('ZeroMQ only supports Buffers or Strings as messages');
199199
}

0 commit comments

Comments
 (0)