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
|
||||
HDNode.prototype.toBuffer = function(isPrivate, __ignoreDeprecation) {
|
||||
if (isPrivate == undefined) {
|
||||
if (isPrivate === undefined) {
|
||||
isPrivate = !!this.privKey
|
||||
|
||||
// FIXME: remove in 2.x.y
|
||||
|
||||
Loading…
Reference in New Issue
Block a user