Skip to content

Commit 2397a9e

Browse files
authored
index: add missing Buffer.alloc
1 parent ec4c050 commit 2397a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ CipherBase.prototype._flush = function (done) {
7373
done(err)
7474
}
7575
CipherBase.prototype._finalOrDigest = function (outputEnc) {
76-
var outData = this.__final() || new Buffer('')
76+
var outData = this.__final() || Buffer.alloc(0)
7777
if (outputEnc) {
7878
outData = this._toString(outData, outputEnc, true)
7979
}

0 commit comments

Comments
 (0)