fix: var-naming linter findings

Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
This commit is contained in:
Mario Constanti 2024-02-22 17:28:39 +01:00
parent 7221812dfa
commit ee3a670456
4 changed files with 19 additions and 21 deletions

View file

@ -130,12 +130,12 @@ func (r *Runner) DeleteEnterprise(ctx context.Context, enterpriseID string) erro
}
if len(pools) > 0 {
poolIds := []string{}
poolIDs := []string{}
for _, pool := range pools {
poolIds = append(poolIds, pool.ID)
poolIDs = append(poolIDs, pool.ID)
}
return runnerErrors.NewBadRequestError("enterprise has pools defined (%s)", strings.Join(poolIds, ", "))
return runnerErrors.NewBadRequestError("enterprise has pools defined (%s)", strings.Join(poolIDs, ", "))
}
if err := r.poolManagerCtrl.DeleteEnterprisePoolManager(enterprise); err != nil {