chore: enable unnecessary-stmt from revive

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
pull/1812/head
Matthieu MOREL 3 weeks ago
parent 60463721ef
commit f4247f1c01

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