mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 12:59:01 +08:00
*: clean up staticcheck problems (#2723)
Fix problems that can be fixed, ignore the ones that don't make sense
This commit is contained in:
committed by
GitHub
parent
efc4483175
commit
29eae8f617
@ -9,6 +9,8 @@ import (
|
||||
sys "golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
//lint:file-ignore ST1005 errors here can be capitalized
|
||||
|
||||
func attachErrorMessage(pid int, err error) error {
|
||||
fallbackerr := fmt.Errorf("could not attach to pid %d: %s", pid, err)
|
||||
if serr, ok := err.(syscall.Errno); ok {
|
||||
|
||||
Reference in New Issue
Block a user