Skip to content

Commit 7e4bc66

Browse files
committed
refactor loop
1 parent 979810f commit 7e4bc66

File tree

1 file changed

+1
-3
lines changed
  • internal/cmd/volume/backup/list

1 file changed

+1
-3
lines changed

internal/cmd/volume/backup/list/list.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ func outputResult(p *print.Printer, outputFormat string, backups []iaas.Backup)
170170
table := tables.NewTable()
171171
table.SetHeader("ID", "NAME", "SIZE", "STATUS", "SNAPSHOT ID", "VOLUME ID", "AVAILABILITY ZONE", "LABELS", "CREATED AT", "UPDATED AT")
172172

173-
for i := range backups {
174-
backup := backups[i]
175-
173+
for _, backup := range backups {
176174
table.AddRow(
177175
utils.PtrString(backup.Id),
178176
utils.PtrString(backup.Name),

0 commit comments

Comments
 (0)