]> zoso.dev Git - buffer.git/commitdiff
remove duplicate check in isBuffer
authorBrian White <mscdex@mscdex.net>
Wed, 13 Nov 2013 23:49:30 +0000 (18:49 -0500)
committerBrian White <mscdex@mscdex.net>
Wed, 13 Nov 2013 23:49:30 +0000 (18:49 -0500)
index.js

index 9ca7cf7bfc17364c60c4d0cdfab0fb139040940c..89c5d27862dc56a33b8ea01be355deb7483db7d0 100644 (file)
--- 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) {