From: Brian White Date: Wed, 13 Nov 2013 23:49:30 +0000 (-0500) Subject: remove duplicate check in isBuffer X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=27aa1afbc1dece0e1a2a56f0d66111ea7ccaa5f9;p=buffer.git remove duplicate check in isBuffer --- 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) {