fix: linting cleanup

This commit is contained in:
Marcel S. Henselin 2025-12-30 16:43:42 +01:00
parent 6b513231b3
commit 468841db57
5 changed files with 14 additions and 24 deletions

View file

@ -376,7 +376,7 @@ func loadFlavorId(ctx context.Context, client postgresflexClient, model *Model,
}
if foundFlavorCount > 1 {
return fmt.Errorf(
"number of flavors returned: %d\nmultiple flavors found: %d flavors\n %s\n",
"number of flavors returned: %d\nmultiple flavors found: %d flavors\n %s",
len(flavorList),
foundFlavorCount,
strings.Join(foundFlavors, "\n "),
@ -409,9 +409,7 @@ func getAllFlavors(ctx context.Context, client postgresflexClient, projectId, re
}
pagination := res.GetPagination()
flavors := res.GetFlavors()
for _, flavor := range flavors {
flavorList = append(flavorList, flavor)
}
flavorList = append(flavorList, flavors...)
if *pagination.TotalRows < int64(len(flavorList)) {
return nil, fmt.Errorf("total rows is smaller than current accumulated list - that should not happen")