Skip to content

Commit 4eeffbb

Browse files
committed
Refactor fetcher to remove redundant system ID concatenation logic and update EnvironmentIds field to be non-pointer in UpsertUserApprovalRecordRequest for consistency.
1 parent f277bf8 commit 4eeffbb

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

cmd/ctrlc/root/ui/fetcher.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,6 @@ func fetchDeploymentsForResource(client *api.ClientWithResponses, workspaceID st
302302
}
303303
// Join system IDs (now plural)
304304
systemIds := ""
305-
if len(dep.SystemIds) > 0 {
306-
systemIds = dep.SystemIds[0]
307-
for i := 1; i < len(dep.SystemIds); i++ {
308-
systemIds += ", " + dep.SystemIds[i]
309-
}
310-
}
311305
rows = append(rows, tableRow{
312306
id: dep.Id,
313307
cols: []string{dep.Name, dep.Slug, systemIds, desc},

internal/api/client.gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)