Skip to content

Commit e385fe8

Browse files
committed
fix: restore 100% test coverage for skewness
1 parent 01caa59 commit e385fe8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

skewness.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ func PopulationSkewness(input Float64Data) (float64, error) {
1414
return math.NaN(), ErrEmptyInput
1515
}
1616

17-
mean, err := Mean(input)
18-
if err != nil {
19-
return math.NaN(), err
20-
}
17+
mean, _ := Mean(input)
2118

2219
// Compute sum of squared and cubed differences from the mean
2320
var sumOfSquares, sumOfCubes float64

0 commit comments

Comments
 (0)