[net][aix] Add missing return value in IOCountersWithContext()

Amends #1797
Fixes #1806
pull/1809/head
Lomanic 2 months ago
parent 3d0ecb18cf
commit 6c9cea2bae

@ -30,7 +30,7 @@ func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat,
iocounters = append(iocounters, n) iocounters = append(iocounters, n)
} }
if pernic == false { if pernic == false {
return getIOCountersAll(iocounters) return getIOCountersAll(iocounters), nil
} }
return iocounters, nil return iocounters, nil
} }

@ -89,7 +89,7 @@ func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat,
return nil, err return nil, err
} }
if pernic == false { if pernic == false {
return getIOCountersAll(iocounters) return getIOCountersAll(iocounters), nil
} }
return iocounters, nil return iocounters, nil
} }

Loading…
Cancel
Save