Open
Description
The following code:
package main
import (
"fmt"
)
func main() {
modesp := map[int]func(int) (int, int, error){
1: func(i int) (next int, m int, err error) {
next = i + 1
return -1, -1, fmt.Errorf("unexpected char[%v] after %% at %d", next, i)
},
2: func(i int) (next int, m int, err error) {
if i == 1 {
next = 1
m = 1
return
}
return
},
}
_ = modesp
}
returns the following unparam issue:
main.go:13:36: main$2 - result err is always nil
I have update unparam use:
go get -u -v mvdan.cc/unparam
Metadata
Metadata
Assignees
Labels
No labels