HDNode: use === over ==
This commit is contained in:
parent
ef1eb04905
commit
307ceb9026
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue