From bee8819f2d53364ef43c9acccc7b650abc784463 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 23 Mar 2016 19:57:55 -0700 Subject: [PATCH] remove redundant check (fix #110) --- index.js | 1 - 1 file changed, 1 deletion(-) 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) } -- 2.34.1