Merge pull request #1812 from mmorel-35/revive/unnecessary-stmt

chore: enable unnecessary-stmt from revive
pull/1783/head
shirou 6 days ago committed by GitHub
commit 40ce965ae1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

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

Loading…
Cancel
Save