Skip to content

Commit fe3df2b

Browse files
committed
[net][aix] Add missing return value in IOCountersWithContext()
Amends shirou#1797 Fixes shirou#1806
1 parent dfcbb64 commit fe3df2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

net/net_aix_cgo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat,
3030
iocounters = append(iocounters, n)
3131
}
3232
if pernic == false {
33-
return getIOCountersAll(iocounters)
33+
return getIOCountersAll(iocounters), nil
3434
}
3535
return iocounters, nil
3636
}

net/net_aix_nocgo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat,
8989
return nil, err
9090
}
9191
if pernic == false {
92-
return getIOCountersAll(iocounters)
92+
return getIOCountersAll(iocounters), nil
9393
}
9494
return iocounters, nil
9595
}

0 commit comments

Comments
 (0)