Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Feb 4, 2024
1 parent 54885d4 commit d7b5434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit d7b5434

Please sign in to comment.