Skip to content

Commit

Permalink
Rename networks to networkStatuses
Browse files Browse the repository at this point in the history
Signed-off-by: Archit Kulkarni <architkulkarni@google.com>
  • Loading branch information
architkulkarni committed Oct 23, 2024
1 parent 1d06125 commit b110ac0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

0 comments on commit b110ac0

Please sign in to comment.