From 6c9cea2baee4e447b8e47a3716e580b902fed51f Mon Sep 17 00:00:00 2001 From: Lomanic <5020919+Lomanic@users.noreply.github.com> Date: Thu, 6 Mar 2025 02:45:48 +0100 Subject: [PATCH] [net][aix] Add missing return value in IOCountersWithContext() Amends #1797 Fixes #1806 --- net/net_aix_cgo.go | 2 +- net/net_aix_nocgo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/net_aix_cgo.go b/net/net_aix_cgo.go index a45a5b7..c440051 100644 --- a/net/net_aix_cgo.go +++ b/net/net_aix_cgo.go @@ -30,7 +30,7 @@ func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat, iocounters = append(iocounters, n) } if pernic == false { - return getIOCountersAll(iocounters) + return getIOCountersAll(iocounters), nil } return iocounters, nil } diff --git a/net/net_aix_nocgo.go b/net/net_aix_nocgo.go index f63a21e..2f4172a 100644 --- a/net/net_aix_nocgo.go +++ b/net/net_aix_nocgo.go @@ -89,7 +89,7 @@ func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat, return nil, err } if pernic == false { - return getIOCountersAll(iocounters) + return getIOCountersAll(iocounters), nil } return iocounters, nil }