From b8a52b55138fd6652bfba20f271286f44557e2ec Mon Sep 17 00:00:00 2001 From: Archit Kulkarni Date: Tue, 15 Oct 2024 10:30:07 -0700 Subject: [PATCH] Update cni.go Co-authored-by: Samuel Karp Signed-off-by: Archit Kulkarni --- cni.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cni.go b/cni.go index bf05417..97d2774 100644 --- a/cni.go +++ b/cni.go @@ -315,9 +315,7 @@ func (c *libcni) reset() { // StatusDetail returns a slice of network statuses func (c *libcni) StatusDetail(ctx context.Context) ([]*NetworkStatus, error) { - err := c.Status() - - if err != nil { + if err := c.Status(); err != nil { return nil, err }