Skip to content

Commit 2a77390

Browse files
fixed build errors introduced with previous commit
1 parent 2761594 commit 2a77390

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/explorer.api/Extensions/ValueCounts.cs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,11 @@ private ValueCounts()
2727
public static ValueCounts Compute<T>(IEnumerable<T> rows)
2828
where T : ICountAggregate, ISuppressible
2929
{
30-
return rows.Aggregate(new ValueCounts(), AccumulateCounts);
30+
return rows.Aggregate(new ValueCounts(), AccumulateRow);
3131
}
3232

33-
private static ValueCounts AccumulateRow<T>(ValueCounts vc, T row)
33+
public ValueCounts AccumulateRow<T>(T row)
3434
where T : ICountAggregate, ISuppressible
35-
{
36-
vc.AccumulateRow<T>(ValueCounts vc, T row);
37-
return vc;
38-
}
39-
40-
public void AccumulateRow<T>(T row)
4135
{
4236
TotalCount += row.Count;
4337
TotalRows++;
@@ -46,6 +40,15 @@ public void AccumulateRow<T>(T row)
4640
SuppressedCount += row.Count;
4741
SuppressedRows++;
4842
}
43+
44+
return this;
45+
}
46+
47+
private static ValueCounts AccumulateRow<T>(ValueCounts vc, T row)
48+
where T : ICountAggregate, ISuppressible
49+
{
50+
vc.AccumulateRow(row);
51+
return vc;
4952
}
5053
}
5154
}

0 commit comments

Comments
 (0)