We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f86593 commit 8af37ffCopy full SHA for 8af37ff
1 file changed
discojs/src/aggregator/mean.ts
@@ -16,7 +16,6 @@ export class MeanAggregator extends MultiRoundAggregator {
16
*/
17
constructor(roundCutoff = 0, threshold = 1, thresholdType?: ThresholdType) {
18
super(roundCutoff, threshold, thresholdType);
19
- super(roundCutoff, threshold, thresholdType);
20
}
21
22
override _add(nodeId: client.NodeID, contribution: WeightsContainer): void {
@@ -30,7 +29,6 @@ export class MeanAggregator extends MultiRoundAggregator {
30
29
override aggregate(): WeightsContainer {
31
const currentContributions = this.contributions.get(0);
32
if (!currentContributions) throw new Error("aggregating without any contribution");
33
- if (!currentContributions) throw new Error("aggregating without any contribution");
34
35
this.log(AggregationStep.AGGREGATE);
36
0 commit comments