Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd committed Jun 12, 2024
1 parent 6590031 commit 3998479
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/controller/main-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,7 @@ func (c *Controller) syncHandler(key string) (Result, error) {
// Get the StatefulSet with the name specified in Tenant.status.pools[i].SSName

// if this index is in the status of pools use it, else capture the desired name in the status and store it
var ssName string

ssName = tenant.PoolStatefulsetName(&pool)
ssName := tenant.PoolStatefulsetName(&pool)

poolInStatus := false
for _, poolStatus := range tenant.Status.Pools {
Expand Down Expand Up @@ -1217,9 +1215,7 @@ func (c *Controller) syncHandler(key string) (Result, error) {
for i, pool := range tenant.Spec.Pools {
// Get the StatefulSet with the name specified in Tenant.status.pools[i].SSName
// if this index is in the status of pools use it, else capture the desired name in the status and store it
var ssName string

ssName = tenant.PoolStatefulsetName(&pool)
ssName := tenant.PoolStatefulsetName(&pool)

poolInStatus := false
for _, poolStatus := range tenant.Status.Pools {
Expand Down

0 comments on commit 3998479

Please sign in to comment.