Skip to content

Commit

Permalink
Fix code style issue by adding missing semicolon (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
asta-li authored Aug 10, 2023
1 parent 1bca2dd commit 554615c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function interpolatePolynomial(xSamples: Uint8Array, ySamples: Uint8Array, x: nu
// Evaluates a polynomial with the given x using Horner's method.
function evaluate(coefficients: Uint8Array, x: number, degree: number) {
if (x === 0) {
throw new Error('cannot evaluate secret polynomial at zero')
throw new Error('cannot evaluate secret polynomial at zero');
}

let result = coefficients[degree]!;
Expand Down

0 comments on commit 554615c

Please sign in to comment.