"undefined"s are unnecessary
This commit is contained in:
parent
ced35a07eb
commit
3daeabaf30
10
lib/ecdsa.js
10
lib/ecdsa.js
|
@ -13,11 +13,11 @@ var ECDSA = function ECDSA(obj) {
|
|||
};
|
||||
|
||||
ECDSA.prototype.set = function(obj) {
|
||||
this.hashbuf = obj.hashbuf || this.hashbuf || undefined;
|
||||
this.keypair = obj.keypair || this.keypair || undefined;
|
||||
this.sig = obj.sig || this.sig || undefined;
|
||||
this.k = obj.k || this.k || undefined;
|
||||
this.verified = obj.verified || this.verified || undefined;
|
||||
this.hashbuf = obj.hashbuf || this.hashbuf;
|
||||
this.keypair = obj.keypair || this.keypair;
|
||||
this.sig = obj.sig || this.sig;
|
||||
this.k = obj.k || this.k;
|
||||
this.verified = obj.verified || this.verified;
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue