From d7b5434e4f4a4793b71a5bb4b149a23371b40f87 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 4 Feb 2024 16:13:12 -0500 Subject: [PATCH] Remove dead code --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b0b5129..1d4b5ea 100644 --- a/index.js +++ b/index.js @@ -963,7 +963,7 @@ Buffer.prototype.write = function write (string, offset, length, encoding) { Buffer.prototype.toJSON = function toJSON () { return { type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) + data: Array.prototype.slice.call(this, 0) } }