mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
enable unparam linter
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user