Skip to content

Commit

Permalink
remove redundant set purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Feb 8, 2019
1 parent 05f7313 commit 4532805
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/hd/private.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ class HDPrivateKey {
if (options.purpose) {
assert(common.purposes[options.purpose] !== undefined, 'Bad purpose');
this.purpose = options.purpose;
} else {
this.purpose = 'x';
}

this.depth = options.depth;
Expand Down
2 changes: 0 additions & 2 deletions lib/hd/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ class HDPublicKey {
if (options.purpose) {
assert(common.purposes[options.purpose] !== undefined, 'Bad purpose');
this.purpose = options.purpose;
} else {
this.purpose = 'x';
}

this.depth = options.depth;
Expand Down

0 comments on commit 4532805

Please sign in to comment.