diff --git a/.golangci.yml b/.golangci.yml index 9229c09..535f93e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -91,7 +91,6 @@ linters-settings: - name: time-naming - name: unexported-return - name: unnecessary-stmt - disabled: true - name: unreachable-code - name: unused-parameter disabled: true diff --git a/net/net_linux.go b/net/net_linux.go index 6072965..fc351ee 100644 --- a/net/net_linux.go +++ b/net/net_linux.go @@ -571,8 +571,7 @@ func (p *process) fillFromStatus(ctx context.Context) error { continue } value := tabParts[1] - switch strings.TrimRight(tabParts[0], ":") { - case "Uid": + if strings.TrimRight(tabParts[0], ":") == "Uid" { p.uids = make([]int32, 0, 4) for _, i := range strings.Split(value, "\t") { v, err := strconv.ParseInt(i, 10, 32)