Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mvshao committed Aug 28, 2024
1 parent 9479ce7 commit e594864
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/controller/runtime/test_client_obj_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ func (t *CustomTracker) Delete(gvr schema.GroupVersionResource, ns, name string)
t.mu.Lock()
defer t.mu.Unlock()

//nolint:goconst
if gvr.Resource == "shoots" {
if gvr.Resource == "shoots" { //nolint:goconst
for index, shoot := range t.shootSequence {
if shoot != nil && shoot.Name == name {
t.shootSequence[index] = nil
Expand Down

0 comments on commit e594864

Please sign in to comment.