From b110ac0dfd0f925dd0a35750f5dfe2e71fb6b19a Mon Sep 17 00:00:00 2001 From: Archit Kulkarni Date: Wed, 23 Oct 2024 20:28:06 +0000 Subject: [PATCH] Rename networks to networkStatuses Signed-off-by: Archit Kulkarni --- cni.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cni.go b/cni.go index 99a87ba..d9a223a 100644 --- a/cni.go +++ b/cni.go @@ -321,7 +321,7 @@ func (c *libcni) StatusDetail(ctx context.Context) ([]*NetworkStatus, error) { return nil, err } - var networks []*NetworkStatus + var networkStatuses []*NetworkStatus for _, network := range c.Networks() { // Skip checking the status of the loopback network. It would have @@ -330,11 +330,11 @@ func (c *libcni) StatusDetail(ctx context.Context) ([]*NetworkStatus, error) { continue } - networks = append(networks, &NetworkStatus{ + networkStatuses = append(networkStatuses, &NetworkStatus{ Network: network, Status: network.Status(ctx), }) } - return networks, nil + return networkStatuses, nil }