From: Feross Aboukhadijeh Date: Thu, 24 Mar 2016 02:57:55 +0000 (-0700) Subject: remove redundant check (fix #110) X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=bee8819f2d53364ef43c9acccc7b650abc784463;p=buffer.git remove redundant check (fix #110) --- diff --git a/index.js b/index.js index c939c81..5dae0da 100644 --- a/index.js +++ b/index.js @@ -451,7 +451,6 @@ Buffer.prototype.inspect = function inspect () { Buffer.prototype.compare = function compare (b) { if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer') - if (this === b) return 0 return Buffer.compare(this, b) }