Skip to content

Commit

Permalink
Update cni.go
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Karp <[email protected]>
Signed-off-by: Archit Kulkarni <[email protected]>
  • Loading branch information
architkulkarni and samuelkarp committed Oct 15, 2024
1 parent 7afa42f commit a7839ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a7839ab

Please sign in to comment.