Skip to content

Commit

Permalink
codecy error resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Jun 3, 2024
1 parent 1c93876 commit b577aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/protocols/shamir/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class ShamirShare {

let _remaining = senders_list.length;
for (let i = 0; i < senders_list.length; i++) {
p_id = senders_list[i];
p_id = senders_list[parseInt(i)];

Check warning on line 151 in lib/client/protocols/shamir/share.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/protocols/shamir/share.js#L151

Always provide a base when using parseInt() functions
if (p_id === jiff.id) {
// Keep party's own share
var my_share = jiff.hooks.execute_array_hooks('receiveShare', [jiff, p_id, shares[p_id]], 2);
Expand Down

0 comments on commit b577aac

Please sign in to comment.