Skip to content

Commit aca9dbd

Browse files
committed
fix: remove proxied constructor logic
1 parent 159d5af commit aca9dbd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/srp/srpClient.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,9 @@ export class SrpClient {
2525
private group: SrpGroup | null = null;
2626
private badState = false;
2727

28-
constructor(group: SrpGroup, v: BigInteger, k?: BigInteger) {
29-
this.newSrp(group, v, k);
30-
}
31-
32-
private newSrp(group: SrpGroup, xORv: BigInteger, k?: BigInteger) {
28+
constructor(group: SrpGroup, x: BigInteger, k?: BigInteger) {
3329
this.group = group;
34-
this.x = xORv;
30+
this.x = x;
3531
if (k) {
3632
this.k = k;
3733
} else {

0 commit comments

Comments
 (0)