From 307ceb902690f0e6bb774a1567cdf4b6abb658be Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 15 Oct 2014 19:08:39 +1100 Subject: [PATCH] HDNode: use === over == --- src/hdnode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdnode.js b/src/hdnode.js index 226416d..9f0828e 100644 --- a/src/hdnode.js +++ b/src/hdnode.js @@ -167,7 +167,7 @@ HDNode.prototype.toBase58 = function(isPrivate) { // FIXME: remove in 2.x.y HDNode.prototype.toBuffer = function(isPrivate, __ignoreDeprecation) { - if (isPrivate == undefined) { + if (isPrivate === undefined) { isPrivate = !!this.privKey // FIXME: remove in 2.x.y