Skip to content

Commit

Permalink
Remove redundant defer r.close() from loadZones
Browse files Browse the repository at this point in the history
Signed-off-by: JordanRushing <[email protected]>
  • Loading branch information
JordanRushing committed Dec 6, 2023
1 parent 93efd5d commit 7bd2c6d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/admission/zone_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func (zt *zoneTracker) loadZones(ctx context.Context, stsList *appsv1.StatefulSe
if err != nil {
return err
}
defer r.Close()
} else {
return err
}
Expand Down

0 comments on commit 7bd2c6d

Please sign in to comment.