You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seaguest@DEV:~/Work/monitor/test$ golangci-lint version
golangci-lint has version 1.51.2 built from 3e8facb4 on 2023-02-19T21:43:54Z
seaguest@DEV:~/Work/monitor/test$
seaguest@DEV:~/Work/monitor/test$
seaguest@DEV:~/Work/monitor/test$ cat t4.go
package main
import (
"errors"
)
var _ error = (*ValidationError)(nil)
type ValidationError struct {
Msg string
}
func (v *ValidationError) Error() string {
return v.Msg
}
func main() {
foo("huu")
}
func foo(a string) error {
if a == "a" {
return errors.New("OOPS")
}
return nil
}
seaguest@DEV:~/Work/monitor/test$ golangci-lint run -Eerrcheck
t4.go:7:5: Error return value is not checked (errcheck)
var _ error = (*ValidationError)(nil)
^
t4.go:18:5: Error return value is not checked (errcheck)
foo("huu")
^
Hello,
There should not be error for
It seems related to
#219
The text was updated successfully, but these errors were encountered: