Skip to content

Commit

Permalink
Add braces.
Browse files Browse the repository at this point in the history
Co-Authored-By: Fedor Indutny <fedor.indutny@gmail.com>
  • Loading branch information
J08nY and indutny authored Oct 21, 2019
1 parent deba258 commit c36942b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/elliptic/ec/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
var ks = k.add(this.n);
var kt = ks.add(this.n);
var kp;
if (ks.bitLength() == this.n.bitLength())
if (ks.bitLength() === this.n.bitLength()) {
kp = this.g.mul(kt);
else
} else {
kp = this.g.mul(ks);
}

if (kp.isInfinity())
continue;
Expand Down

0 comments on commit c36942b

Please sign in to comment.