From 27aa1afbc1dece0e1a2a56f0d66111ea7ccaa5f9 Mon Sep 17 00:00:00 2001 From: Brian White Date: Wed, 13 Nov 2013 18:49:30 -0500 Subject: [PATCH] remove duplicate check in isBuffer --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9ca7cf7..89c5d27 100644 --- a/index.js +++ b/index.js @@ -406,7 +406,7 @@ Buffer.prototype.fill = function fill(value, start, end) { // Static methods Buffer.isBuffer = function isBuffer(b) { - return b instanceof Buffer || b instanceof Buffer; + return b instanceof Buffer; }; Buffer.concat = function (list, totalLength) { -- 2.34.1