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 e594864 commit d62e17a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/runtime/test_client_obj_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (t *CustomTracker) Get(gvr schema.GroupVersionResource, ns, name string) (r
t.mu.Lock()
defer t.mu.Unlock()

if gvr.Resource == "shoots" {
if gvr.Resource == "shoots" { //nolint:goconst
return getNextObject(t.shootSequence, &t.shootCallCnt)
} else if gvr.Resource == "seeds" {
return getNextObject(t.seedSequence, &t.seedCallCnt)
Expand All @@ -64,7 +64,7 @@ func (t *CustomTracker) Update(gvr schema.GroupVersionResource, obj runtime.Obje
t.mu.Lock()
defer t.mu.Unlock()

if gvr.Resource == "shoots" {
if gvr.Resource == "shoots" { //nolint:goconst
shoot, ok := obj.(*gardener_api.Shoot)
if !ok {
return fmt.Errorf("object is not of type Gardener Shoot")
Expand Down

0 comments on commit d62e17a

Please sign in to comment.