HDNode: use === over ==
This commit is contained in:
parent
ef1eb04905
commit
307ceb9026
@ -167,7 +167,7 @@ HDNode.prototype.toBase58 = function(isPrivate) {
|
|||||||
|
|
||||||
// FIXME: remove in 2.x.y
|
// FIXME: remove in 2.x.y
|
||||||
HDNode.prototype.toBuffer = function(isPrivate, __ignoreDeprecation) {
|
HDNode.prototype.toBuffer = function(isPrivate, __ignoreDeprecation) {
|
||||||
if (isPrivate == undefined) {
|
if (isPrivate === undefined) {
|
||||||
isPrivate = !!this.privKey
|
isPrivate = !!this.privKey
|
||||||
|
|
||||||
// FIXME: remove in 2.x.y
|
// FIXME: remove in 2.x.y
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user