enable unparam linter

This commit is contained in:
2026-02-15 12:44:52 +00:00
parent 7a0d5c56e5
commit 9bc4d21739
7 changed files with 19 additions and 19 deletions

View File

@@ -52,7 +52,7 @@ func mustDbFrom(level float64) float64 {
}
}
func toFixed(num float64, precision int) float64 {
func toFixed(num float64, precision int) float64 { // nolint: unparam
output := math.Pow(10, float64(precision))
return float64(math.Round(num*output)) / output
}