Skip to content

Commit 6fdfd32

Browse files
author
Josef Fröhle
committed
fix(package): fix deprecated api
Signed-off-by: Josef Fröhle <[email protected]>
1 parent 3fbe212 commit 6fdfd32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openssl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function spawn (params, binary, callback) {
121121
var openssl = cpspawn(pathBin, params)
122122
var stderr = ''
123123

124-
var stdout = (binary ? Buffer.alloc ? Buffer.alloc(0) : new Buffer(0).fill(0) : '')
124+
var stdout = (binary ? Buffer.alloc(0) : '')
125125
openssl.stdout.on('data', function (data) {
126126
if (!binary) {
127127
stdout += data.toString('binary')

0 commit comments

Comments
 (0)