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:
@@ -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
|
||||
|
||||
|
||||
@@ -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