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

@@ -76,7 +76,7 @@ func (p *xairParser) extractOSCAddress(data []byte) (address string, nextPos int
func (p *xairParser) extractOSCTypeTags(
data []byte,
start int,
) (typeTags string, nextPos int, err error) {
) (typeTags string, nextPos int, err error) { // nolint: unparam
if start >= len(data) {
return "", start, nil // No type tags available
}
@@ -105,7 +105,7 @@ func (p *xairParser) parseOSCArguments(
argsStart int,
typeTags string,
msg *osc.Message,
) error {
) error { // nolint: unparam
argData := data[argsStart:]
argNum := 0

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
}