We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec4c050 commit 2397a9eCopy full SHA for 2397a9e
index.js
@@ -73,7 +73,7 @@ CipherBase.prototype._flush = function (done) {
73
done(err)
74
}
75
CipherBase.prototype._finalOrDigest = function (outputEnc) {
76
- var outData = this.__final() || new Buffer('')
+ var outData = this.__final() || Buffer.alloc(0)
77
if (outputEnc) {
78
outData = this._toString(outData, outputEnc, true)
79
0 commit comments